Commit de45bc33 authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

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.
parent e32711dd
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment