aboutsummaryrefslogtreecommitdiffhomepage
path: root/win32/ScintillaWin.cxx
diff options
context:
space:
mode:
authorjohnsonj <devnull@localhost>2015-09-10 13:52:09 +1000
committerjohnsonj <devnull@localhost>2015-09-10 13:52:09 +1000
commit20992c653d1c66e50ea49369d587d492065977f0 (patch)
treec20a2935624ce9a00186b5594c7d48a0158cbba0 /win32/ScintillaWin.cxx
parent46912afea40ba01415b3d06273b457a4ff196573 (diff)
downloadscintilla-mirror-20992c653d1c66e50ea49369d587d492065977f0.tar.gz
Fix IME caret movements for emoji.
Diffstat (limited to 'win32/ScintillaWin.cxx')
-rw-r--r--win32/ScintillaWin.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx
index 7dd7d410b..f5d675f75 100644
--- a/win32/ScintillaWin.cxx
+++ b/win32/ScintillaWin.cxx
@@ -1031,7 +1031,7 @@ sptr_t ScintillaWin::HandleCompositionInline(uptr_t, sptr_t lParam) {
// Record compstr character positions for moving IME carets.
numBytes += oneCharLen;
- imeCharPos[i + 1] = numBytes;
+ imeCharPos[i + ucWidth] = numBytes;
// Draw an indicator on the character.
int indicator = SC_INDICATOR_UNKNOWN;