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
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 3 additions and 0 deletions

View File

@ -35,6 +35,8 @@ To update |kitty|, :doc:`follow the instructions <binary>`.
- Allow passing the current selection to kittens (:iss:`2796`)
- Fix pre-edit text not always being cleared with ibus input (:iss:`2862`)
- Allow setting the :opt:`background_opacity` of new OS windows created via
:option:`kitty --single-instance` using the :option:`kitty --override` command line
argument (:iss:`2806`)

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