diff options
| author | Maxime Coste <mawww@kakoune.org> | 2025-05-29 16:28:59 +1000 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2025-05-29 16:28:59 +1000 |
| commit | ccb3090361103368ed57d628b5922e18a49fc604 (patch) | |
| tree | 71594483060d5f7597498ccb5d22543dfdbd2dd7 /test | |
| parent | d5fc4454551d4d9ee462d1291057a016fbfe3882 (diff) | |
Merge overlapping selections before replacing characters
Without doing this, replace with multiple selection at buffer end
breaks as the first selection will replace the end-of-line with a
non-eol character, then a new eol will automatically be added which
will put remaining selections past the end of the buffer.
Fixes #5316
Diffstat (limited to 'test')
3 files changed, 4 insertions, 0 deletions
diff --git a/test/regression/5316-crash-on-duplicate-cursor-replace-at-end/cmd b/test/regression/5316-crash-on-duplicate-cursor-replace-at-end/cmd new file mode 100644 index 00000000..f0fb467d --- /dev/null +++ b/test/regression/5316-crash-on-duplicate-cursor-replace-at-end/cmd @@ -0,0 +1 @@ +<a-O>+rc diff --git a/test/regression/5316-crash-on-duplicate-cursor-replace-at-end/in b/test/regression/5316-crash-on-duplicate-cursor-replace-at-end/in new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/test/regression/5316-crash-on-duplicate-cursor-replace-at-end/in @@ -0,0 +1 @@ + diff --git a/test/regression/5316-crash-on-duplicate-cursor-replace-at-end/out b/test/regression/5316-crash-on-duplicate-cursor-replace-at-end/out new file mode 100644 index 00000000..02b64336 --- /dev/null +++ b/test/regression/5316-crash-on-duplicate-cursor-replace-at-end/out @@ -0,0 +1,2 @@ + +c |
