Module: wine Branch: master Commit: de45bc33a73eac5dbc3502b4a43cd48399507c73 URL: https://gitlab.winehq.org/wine/wine/-/commit/de45bc33a73eac5dbc3502b4a43cd48...
Author: Rémi Bernon rbernon@codeweavers.com Date: Thu May 4 11:23:08 2023 +0200
riched20: Update the editor IME position on GCS_RESULTSTR.
So that a GCS_RESULTSTR followed by GCS_COMPSTR, without interruping the composition, begins inserting the new composition text after the result instead of before it.
---
dlls/riched20/editor.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/dlls/riched20/editor.c b/dlls/riched20/editor.c index 9c84a810569..412648d9116 100644 --- a/dlls/riched20/editor.c +++ b/dlls/riched20/editor.c @@ -4140,6 +4140,8 @@ LRESULT editor_handle_message( ME_TextEditor *editor, UINT msg, WPARAM wParam, if (dwIndex == GCS_COMPSTR) set_selection_cursors(editor,editor->imeStartIndex, editor->imeStartIndex + dwBufLen/sizeof(WCHAR)); + else + editor->imeStartIndex = ME_GetCursorOfs(&editor->pCursors[0]); } ME_ReleaseStyle(style); ME_CommitUndo(editor);