aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Selection.cxx
diff options
context:
space:
mode:
authornyamatongwe <unknown>2011-01-12 14:19:13 +1100
committernyamatongwe <unknown>2011-01-12 14:19:13 +1100
commitaa1fb9bc4cbbc0a86a151f2e2a20bf0dcf0824c9 (patch)
tree5bbc7919d525e017a63afb024358193f9d91d764 /src/Selection.cxx
parent7a55b6d47b75b665100a04ca16e6a210d436d235 (diff)
downloadscintilla-mirror-aa1fb9bc4cbbc0a86a151f2e2a20bf0dcf0824c9.tar.gz
Remove virtual space if invalid after modification. Bug #3154986.
Diffstat (limited to 'src/Selection.cxx')
-rw-r--r--src/Selection.cxx4
1 files changed, 4 insertions, 0 deletions
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;
}
}
}