helix-mirror/helix-term/tests/test
Mike Trinkala 5bd007266a
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)
2024-03-02 15:05:58 +01:00
..
commands Add glob file type support (#8006) 2024-02-11 18:24:20 +01:00
languages Fix YAML auto indent 2023-08-11 06:22:22 +09:00
auto_indent.rs migrate test_with_config to use AppBuilder 2023-03-20 18:34:40 -05:00
auto_pairs.rs Add config for default line ending (#5621) 2023-06-16 12:02:15 -05:00
commands.rs Fix panic when using join_selections_space (#9783) 2024-03-02 15:05:58 +01:00
helpers.rs Add glob file type support (#8006) 2024-02-11 18:24:20 +01:00
movement.rs Fix find commands for buffers with non-LF line-endings (#8111) 2023-09-03 23:12:38 +02:00
prompt.rs flush writes on force quit (#4397) 2022-10-21 13:28:29 +09:00
splits.rs Create helix-stdx crate for stdlib extensions 2024-01-18 10:57:53 +09:00