diff options
author | Neil <nyamatongwe@gmail.com> | 2014-12-05 20:36:01 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2014-12-05 20:36:01 +1100 |
commit | c0e2261ef73cee1f91866314f7b9405be4b88867 (patch) | |
tree | d6818c8224eb3fc2e5e3e6df83840131c888de28 /src/Editor.cxx | |
parent | 121cdce949c0aadcda06306726a741023262fb9e (diff) | |
download | scintilla-mirror-c0e2261ef73cee1f91866314f7b9405be4b88867.tar.gz |
Extract FillVirtualSpace so it is not repeated and can be made less complex in
the future.
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r-- | src/Editor.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
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(); |