• Jinoh Kang's avatar
    riched20: Obtain the composition start index after deleting selection. · 676d15ad
    Jinoh Kang authored
    Today, the Rich Edit control handles the WM_IME_STARTCOMPOSITION message
    by the computing the composition start position (imeStartIndex) _before_
    calling ME_DeleteSelection(), which shifts the character positions after
    the range of deletion.  If the selection were not empty, imeStartIndex
    immediately becomes stale, since it does not take into account the
    number of deleted characters before it.
    
    Fix this by computing imeStartIndex after the ME_DeleteSelection() call.
    
    Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54318
    (cherry picked from commit 8c43577f)
    676d15ad
Name
Last commit
Last update
..
tests Loading commit data...
Makefile.in Loading commit data...
caret.c Loading commit data...
clipboard.c Loading commit data...
context.c Loading commit data...
editor.c Loading commit data...
editor.h Loading commit data...
editstr.h Loading commit data...
list.c Loading commit data...
ocr_reverse.cur Loading commit data...
ocr_reverse.svg Loading commit data...
paint.c Loading commit data...
para.c Loading commit data...
reader.c Loading commit data...
res.h Loading commit data...
riched20.spec Loading commit data...
riched_tom.idl Loading commit data...
richole.c Loading commit data...
row.c Loading commit data...
rtf.h Loading commit data...
run.c Loading commit data...
string.c Loading commit data...
style.c Loading commit data...
table.c Loading commit data...
txthost.c Loading commit data...
txtsrv.c Loading commit data...
undo.c Loading commit data...
version.rc Loading commit data...
wrap.c Loading commit data...
writer.c Loading commit data...