From: Rémi Bernon rbernon@codeweavers.com
After WM_IME_CHAR messages have been processed the selected text offsets are updated and we need to reflect these in the composition offsets so that further WM_IME_* messages insert new composition strings after the new text and not before.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53860 --- dlls/comctl32/edit.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/dlls/comctl32/edit.c b/dlls/comctl32/edit.c index 2ad18cb401e..edcf2d0707b 100644 --- a/dlls/comctl32/edit.c +++ b/dlls/comctl32/edit.c @@ -5060,6 +5060,8 @@ static LRESULT CALLBACK EDIT_WindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPAR if (lParam & GCS_RESULTSTR && !(es->ime_status & EIMES_GETCOMPSTRATONCE)) { DefWindowProcW(hwnd, msg, wParam, lParam); + es->composition_start = es->selection_start; + es->composition_len = es->selection_end - es->selection_start; break; }