diff options
author | Mike Trinkala | 2024-03-02 14:05:58 +0000 |
---|---|---|
committer | GitHub | 2024-03-02 14:05:58 +0000 |
commit | 5bd007266a962a534bd722619821e998735b71e2 (patch) | |
tree | b932cfb1b34ee6eb5f31b036d843f883e24823fc /runtime/queries/just | |
parent | d769fadde085169c26a850966a6d5d8da7cc1c12 (diff) |
Fix panic when using join_selections_space (#9783)
Joining lines with Alt-J does not properly select the inserted spaces
when the selection contains blank lines. In the worst case it panics
with an out of bounds index.
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value:
Char index out of bounds: char index 11, Rope/RopeSlice char length 10'
Steps to reproduce:
* Create a new document
```
a
b
c
d
e
```
* % (Select all)
* Alt-J (join and select the spaces)
Diffstat (limited to 'runtime/queries/just')
0 files changed, 0 insertions, 0 deletions