diff options
| author | Maxime Coste <mawww@kakoune.org> | 2017-07-14 13:05:52 +0900 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2017-07-14 13:08:29 +0900 |
| commit | 8650c99f131aae8b10eb2141f7c2152fff25b7d1 (patch) | |
| tree | 05ae1640cd4798d95676bca2b3ba8322dbf6d964 /src/input_handler.cc | |
| parent | 53f5b3d70983bc1d86a5c45c943a6eafc9f55344 (diff) | |
Fix assertion when replacing with empty strings
Replacing with empty strings is essentially a deletion, which means
it can end up push some selections out of the buffer (imagine 3 a
2 empty line buffer, and deleting the second one). We are fixing
the selections in SelectionList::erase, but we were not doing that
in SelectionList::insert.
Fixes #1504
Diffstat (limited to 'src/input_handler.cc')
0 files changed, 0 insertions, 0 deletions
