diff options
| author | Neil <nyamatongwe@gmail.com> | 2019-11-25 22:08:34 +1100 |
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2019-11-25 22:08:34 +1100 |
| commit | 86a71cac683e04357bf689817053b60c6b5798d1 (patch) | |
| tree | 873d1731c7fa15ac985093d20adff817663b973f /src | |
| parent | cf034c5958bd83d4a0f71ff79a47e4f76534d5d6 (diff) | |
| download | scintilla-mirror-86a71cac683e04357bf689817053b60c6b5798d1.tar.gz | |
Fix regression in 7773 where position wasn't moved on to account for virtual
space consumption.
Diffstat (limited to 'src')
| -rw-r--r-- | src/Selection.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Selection.cxx b/src/Selection.cxx index 5667bf234..e47ace127 100644 --- a/src/Selection.cxx +++ b/src/Selection.cxx @@ -29,6 +29,7 @@ void SelectionPosition::MoveForInsertDelete(bool insertion, Sci::Position startC // Always consume virtual space const Sci::Position virtualLengthRemove = std::min(length, virtualSpace); virtualSpace -= virtualLengthRemove; + position += virtualLengthRemove; if (moveForEqual) { const Sci::Position lengthAfterVirtualRemove = length - virtualLengthRemove; position += lengthAfterVirtualRemove; |
