diff options
| author | nyamatongwe <unknown> | 2011-01-12 14:19:13 +1100 |
|---|---|---|
| committer | nyamatongwe <unknown> | 2011-01-12 14:19:13 +1100 |
| commit | aa1fb9bc4cbbc0a86a151f2e2a20bf0dcf0824c9 (patch) | |
| tree | 5bbc7919d525e017a63afb024358193f9d91d764 | |
| parent | 7a55b6d47b75b665100a04ca16e6a210d436d235 (diff) | |
| download | scintilla-mirror-aa1fb9bc4cbbc0a86a151f2e2a20bf0dcf0824c9.tar.gz | |
Remove virtual space if invalid after modification. Bug #3154986.
| -rw-r--r-- | src/Selection.cxx | 4 |
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; } } } |
