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. --- gtk/ScintillaGTK.cxx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'gtk') diff --git a/gtk/ScintillaGTK.cxx b/gtk/ScintillaGTK.cxx index bc3d00952..d5d0622da 100644 --- a/gtk/ScintillaGTK.cxx +++ b/gtk/ScintillaGTK.cxx @@ -2405,10 +2405,7 @@ void ScintillaGTK::PreeditChangedThis() { } else { // No tentative undo means start of this composition so // fill in any virtual spaces. - bool tmpOverstrike = inOverstrike; - inOverstrike = false; // Not allowed to be deleted twice. - AddCharUTF("", 0); - inOverstrike = tmpOverstrike; + FillVirtualSpace(); } PreEditString utfval(im_context); -- cgit v1.2.3