diff options
| author | nyamatongwe <devnull@localhost> | 2011-01-12 14:19:13 +1100 |
|---|---|---|
| committer | nyamatongwe <devnull@localhost> | 2011-01-12 14:19:13 +1100 |
| commit | 17e47f98ca2f6d40ace195da40cf80dc3cda49bb (patch) | |
| tree | 5e2c57c42e841255b81709828db6a13ca2825224 /src | |
| parent | a172aaa969abd0fcf80aa6cb1ae70fdc4698649f (diff) | |
| download | scintilla-mirror-17e47f98ca2f6d40ace195da40cf80dc3cda49bb.tar.gz | |
Remove virtual space if invalid after modification. Bug #3154986.
Diffstat (limited to 'src')
| -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; } } } |
