From bfad851459cb44308d42b5889b6495c986a19438 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. --- src/Editor.cxx | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/Editor.cxx') diff --git a/src/Editor.cxx b/src/Editor.cxx index 64017c58d..b85055202 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -1898,6 +1898,13 @@ void Editor::AddCharUTF(const char *s, unsigned int len, bool treatAsDBCS) { } } +void Editor::FillVirtualSpace() { + const bool tmpOverstrike = inOverstrike; + inOverstrike = false; // not allow to be deleted twice. + AddCharUTF("", 0); + inOverstrike = tmpOverstrike; +} + void Editor::InsertPaste(const char *text, int len) { if (multiPasteMode == SC_MULTIPASTE_ONCE) { SelectionPosition selStart = sel.Start(); -- cgit v1.2.3