pagedown 126aaddccb
IME: Render overlay at the last visible cursor position with a separate cursor
Fix the problem caused by wrong cursor coordinates. No more messing with
the main cursor, instead the cursor is saved when receiving a pre-edit
text update and used for drawing later.

Update the overlay to the last visible cursor position before rendering
to ensure it always moves with the cursor. Finally, draw the overlay
after line rendering is complete, and restore the line buffer after
updating the rendered data to ensure that the line text being read is
correct at all times.

This also improves performance by only rendering once when changes are
made, eliminating the need to repeatedly disable and draw after various
commands and not even comprehensively.
2023-02-22 22:36:06 +08:00
..
2022-09-30 08:44:09 +08:00
2022-06-30 17:00:14 +05:30
2023-02-01 19:11:39 +05:30
2023-02-11 20:33:08 +08:00
2023-02-11 20:33:08 +08:00
2022-04-30 17:07:36 +08:00
...
2023-01-20 07:07:28 +05:30
2022-04-30 17:07:36 +08:00
2022-01-23 11:33:58 +05:30
2022-04-30 17:07:36 +08:00
2021-07-18 13:29:33 +05:30
2023-01-14 15:44:52 +05:30
2023-01-14 15:44:52 +05:30
2022-04-30 17:07:36 +08:00