From aa1fb9bc4cbbc0a86a151f2e2a20bf0dcf0824c9 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Wed, 12 Jan 2011 14:19:13 +1100 Subject: Remove virtual space if invalid after modification. Bug #3154986. --- src/Selection.cxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/Selection.cxx b/src/Selection.cxx index 48add617c..305d7219f 100644 --- a/src/Selection.cxx +++ b/src/Selection.cxx @@ -20,6 +20,9 @@ using namespace Scintilla; #endif void SelectionPosition::MoveForInsertDelete(bool insertion, int startChange, int length) { + if (position == startChange) { + virtualSpace = 0; + } if (insertion) { if (position > startChange) { position += length; @@ -31,6 +34,7 @@ void SelectionPosition::MoveForInsertDelete(bool insertion, int startChange, int position -= length; } else { position = startChange; + virtualSpace = 0; } } } -- cgit v1.2.3