# HG changeset patch # User Jason Rumney # Date 1236173794 0 # Node ID f978553ef98f43e950d7052d35ee92cfd189462d # Parent 5e36a5376d8ad0f7f188f6639659e3940d73aaa4 (w32_wnd_proc): Only ignore IME messages for the characters that have already been read. diff -r 5e36a5376d8a -r f978553ef98f src/w32fns.c --- a/src/w32fns.c Wed Mar 04 13:02:54 2009 +0000 +++ b/src/w32fns.c Wed Mar 04 13:36:34 2009 +0000 @@ -3159,10 +3159,13 @@ my_post_msg (&wmsg, hwnd, WM_UNICHAR, (WPARAM) buffer[i], lParam); } - /* We output the whole string above, so ignore following ones - until we are notified of the end of composition. */ - ignore_ime_char = 1; + /* Ignore the messages for the rest of the + characters in the string that was output above. */ + ignore_ime_char = (size / sizeof (wchar_t)) - 1; } + else + ignore_ime_char--; + break; case WM_IME_ENDCOMPOSITION: