• 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
dlls Loading commit data...
documentation Loading commit data...
fonts Loading commit data...
include Loading commit data...
libs Loading commit data...
loader Loading commit data...
nls Loading commit data...
po Loading commit data...
programs Loading commit data...
server Loading commit data...
tools Loading commit data...
.editorconfig Loading commit data...
.gitlab-ci.yml Loading commit data...
.mailmap Loading commit data...
ANNOUNCE Loading commit data...
AUTHORS Loading commit data...
COPYING.LIB Loading commit data...
LICENSE Loading commit data...
LICENSE.OLD Loading commit data...
MAINTAINERS Loading commit data...
README Loading commit data...
VERSION Loading commit data...
aclocal.m4 Loading commit data...
configure Loading commit data...
configure.ac Loading commit data...