IME: Fix IME commit text and update pre-edit at the same time

Correctly update the overlay position when cursor visibility changes.
Restore the overlay line only when the cursor is visible.
Clear the saved overlay when drawing new pre-edit text.
Also update the cursor position when screen size changes.
Use four spaces to indent instead of two.
This commit is contained in:
pagedown
2023-02-10 10:50:32 +08:00
parent 439a997e5d
commit 947dc2ff75
2 changed files with 38 additions and 18 deletions

View File

@@ -74,8 +74,8 @@ typedef struct {
index_type xstart, ynum, xnum;
struct {
PyObject *overlay_text;
const char *func_name;
PyObject *overlay_text;
const char *func_name;
} save;
} OverlayLine;