From c0e2261ef73cee1f91866314f7b9405be4b88867 Mon Sep 17 00:00:00 2001 From: Neil Date: Fri, 5 Dec 2014 20:36:01 +1100 Subject: Extract FillVirtualSpace so it is not repeated and can be made less complex in the future. --- win32/ScintillaWin.cxx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'win32') 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; -- cgit v1.2.3