aboutsummaryrefslogtreecommitdiffhomepage
path: root/win32
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2014-12-05 20:36:01 +1100
committerNeil <nyamatongwe@gmail.com>2014-12-05 20:36:01 +1100
commitbfad851459cb44308d42b5889b6495c986a19438 (patch)
tree4c8938ce3aed03d21064f1142e0a3476ed0a0a55 /win32
parent78d0e65c891fc0c995093e8e3a535fccc3e09251 (diff)
downloadscintilla-mirror-bfad851459cb44308d42b5889b6495c986a19438.tar.gz
Extract FillVirtualSpace so it is not repeated and can be made less complex in
the future.
Diffstat (limited to 'win32')
-rw-r--r--win32/ScintillaWin.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx
index 205d1d58e..35c106d5b 100644
--- a/win32/ScintillaWin.cxx
+++ b/win32/ScintillaWin.cxx
@@ -812,10 +812,7 @@ sptr_t ScintillaWin::HandleCompositionInline(uptr_t, sptr_t lParam) {
} else {
// No tentative undo means start of this composition so
// fill in any virtual spaces.
- bool tmpOverstrike = inOverstrike;
- inOverstrike = false; // not allow to be deleted twice.
- AddCharUTF("", 0);
- inOverstrike = tmpOverstrike;
+ FillVirtualSpace();
}
view.imeCaretBlockOverride = false;