aboutsummaryrefslogtreecommitdiffhomepage
path: root/win32
diff options
context:
space:
mode:
authorjohnsonj <unknown>2019-07-17 15:37:49 +1000
committerjohnsonj <unknown>2019-07-17 15:37:49 +1000
commite27436cf52af98321cab1b288fc7c215af568277 (patch)
treec3923ccc869b1ecbffd201caeece68e6931fca24 /win32
parentc4db23f76c9814fbdba304f4ad3fcc7ddd4f30ec (diff)
downloadscintilla-mirror-e27436cf52af98321cab1b288fc7c215af568277.tar.gz
Feature [feature-requests:#1300] part 3. Stop candidate window moving while
typing.
Diffstat (limited to 'win32')
-rw-r--r--win32/ScintillaWin.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx
index 55606fe07..e19dca8b5 100644
--- a/win32/ScintillaWin.cxx
+++ b/win32/ScintillaWin.cxx
@@ -1100,8 +1100,12 @@ sptr_t ScintillaWin::HandleCompositionInline(uptr_t, sptr_t lParam) {
return 0;
}
- if (initialCompose)
+ if (initialCompose) {
ClearBeforeTentativeStart();
+ }
+
+ // Set candidate window left aligned to beginning of preedit string.
+ SetCandidateWindowPos();
pdoc->TentativeStart(); // TentativeActive from now on.
std::vector<int> imeIndicator = MapImeIndicators(imc.GetImeAttributes());
@@ -1131,7 +1135,6 @@ sptr_t ScintillaWin::HandleCompositionInline(uptr_t, sptr_t lParam) {
AddWString(imc.GetCompositionString(GCS_RESULTSTR), CharacterSource::imeResult);
}
EnsureCaretVisible();
- SetCandidateWindowPos();
ShowCaretAtCurrentPosition();
return 0;
}