diff options
| author | johnsonj <unknown> | 2019-07-17 15:46:13 +1000 |
|---|---|---|
| committer | johnsonj <unknown> | 2019-07-17 15:46:13 +1000 |
| commit | ba826379b8cf8f61d4243b7957e81989d57896db (patch) | |
| tree | a29eac5b03b4bf720f1ff50b1c3c0bd0ecbad27d /win32/ScintillaWin.cxx | |
| parent | 1b6a730a1879de901b909ce2fbe5a3073b4144ad (diff) | |
| download | scintilla-mirror-ba826379b8cf8f61d4243b7957e81989d57896db.tar.gz | |
Backport: Feature [feature-requests:#1300] part 4. Align candidate window to target part
of composition text.
Backport of changeset 7686:7761c6b46433.
Diffstat (limited to 'win32/ScintillaWin.cxx')
| -rw-r--r-- | win32/ScintillaWin.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx index b70934a80..67cbd2d79 100644 --- a/win32/ScintillaWin.cxx +++ b/win32/ScintillaWin.cxx @@ -1132,6 +1132,11 @@ sptr_t ScintillaWin::HandleCompositionInline(uptr_t, sptr_t lParam) { MoveImeCarets(- CurrentPosition() + imeCaretPosDoc); + if (std::find(imeIndicator.begin(), imeIndicator.end(), SC_INDICATOR_TARGET) != imeIndicator.end()) { + // set candidate window left aligned to beginning of target string. + SetCandidateWindowPos(); + } + if (KoreanIME()) { view.imeCaretBlockOverride = true; } |
