You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
helix/helix-term/src
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)
4 months ago
..
commands LSP: Key diagnostics off file path instead of URI 4 months ago
handlers fix LSP ComplitionTriggerKind value for `TriggerKind::Auto` (#9660) 4 months ago
keymap toggling of block comments (#4718) 4 months ago
ui Support LSP diagnostic tags (#9780) 4 months ago
application.rs LSP: Normalize diagnostic file paths 4 months ago
args.rs Fallback to filename for +arg (#9333) 5 months ago
commands.rs Fix panic when using join_selections_space (#9783) 4 months ago
compositor.rs add redraw command (#6949) 10 months ago
config.rs feat: smart_tab 11 months ago
events.rs Add hook/event system 5 months ago
handlers.rs refactor completion and signature help using hooks 5 months ago
health.rs Add glob file type support (#8006) 5 months ago
job.rs Add hook/event system 5 months ago
keymap.rs Allow numbers as second input event (#8471) 4 months ago
lib.rs follow neovim's truecolor detection (#9577) 5 months ago
main.rs Add glob file type support (#8006) 5 months ago