aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/odin
diff options
context:
space:
mode:
authorMike Trinkala2024-03-02 14:05:58 +0000
committerGitHub2024-03-02 14:05:58 +0000
commit5bd007266a962a534bd722619821e998735b71e2 (patch)
treeb932cfb1b34ee6eb5f31b036d843f883e24823fc /runtime/queries/odin
parentd769fadde085169c26a850966a6d5d8da7cc1c12 (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/odin')
0 files changed, 0 insertions, 0 deletions