diff options
author | johnsonj <unknown> | 2019-07-17 15:46:13 +1000 |
---|---|---|
committer | johnsonj <unknown> | 2019-07-17 15:46:13 +1000 |
commit | d273fb8b169cd9b4b7f6a24ff9b5f60e886376f4 (patch) | |
tree | c628b89799cff545b38b0884f5ee16b6c7a89ff2 /win32/ScintillaWin.cxx | |
parent | e27436cf52af98321cab1b288fc7c215af568277 (diff) | |
download | scintilla-mirror-d273fb8b169cd9b4b7f6a24ff9b5f60e886376f4.tar.gz |
Feature [feature-requests:#1300] part 4. Align candidate window to target part
of composition text.
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 e19dca8b5..487b2bc02 100644 --- a/win32/ScintillaWin.cxx +++ b/win32/ScintillaWin.cxx @@ -1128,6 +1128,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; } |