Fix pre-edit text not always being cleared with iBus input

Fixes #2862
This commit is contained in:
Kovid Goyal
2020-07-18 19:31:38 +05:30
parent 8093d70643
commit a3fc3233cd
2 changed files with 3 additions and 0 deletions

View File

@@ -146,6 +146,7 @@ on_key_input(GLFWkeyevent *ev) {
schedule_write_to_child(w->id, 1, text, strlen(text));
debug("committed pre-edit text: %s\n", text);
} else debug("committed pre-edit text: (null)\n");
screen_draw_overlay_text(screen, NULL);
return;
case 0:
// for macOS, update ime position on every key input