helix/helix-term/src
Mike Trinkala cb01e52cd8
Fix panic in surround_replace/delete nested multi-cursor (#9815)
Test Document
-------------
```
{{

}
}

```

Steps To Reproduce
------------------
1. 2j  # move_visual_line_down
1. C   # copy_selection_on_next_line
1. mdm # surround_delete

Debug
-----
`assertion failed: last <= from', transaction.rs:597:13`

Release
-------
`called `Result::unwrap()` on an `Err` value: Char range out of bounds:
char range 18446744073709551614..18446744073709551615,
Rope/RopeSlice char length 7', ropey-1.6.1/src/rope.rs:546:37`

Description
-----------

Processing the surrounding pairs in order violates the assertion the
ranges are ordered. To handle nested surrounds all positions have to
be sorted. Also surround_replace has to track the proper replacement
character for each position.
2024-03-08 02:20:07 +09:00
..
commands LSP: Key diagnostics off file path instead of URI 2024-02-26 00:12:43 +09:00
handlers fix LSP ComplitionTriggerKind value for `TriggerKind::Auto` (#9660) 2024-02-19 13:58:17 +01:00
keymap toggling of block comments (#4718) 2024-02-27 22:36:25 +09:00
ui Support LSP diagnostic tags (#9780) 2024-03-02 13:37:11 +09:00
application.rs LSP: Normalize diagnostic file paths 2024-02-26 00:12:43 +09:00
args.rs Fallback to filename for +arg (#9333) 2024-01-14 15:11:18 +01:00
commands.rs Fix panic in surround_replace/delete nested multi-cursor (#9815) 2024-03-08 02:20:07 +09:00
compositor.rs add redraw command (#6949) 2023-09-08 10:46:36 +09:00
config.rs feat: smart_tab 2023-08-01 09:41:42 -05:00
events.rs Add hook/event system 2024-01-23 11:20:19 +09:00
handlers.rs refactor completion and signature help using hooks 2024-01-23 11:20:19 +09:00
health.rs Add glob file type support (#8006) 2024-02-11 18:24:20 +01:00
job.rs Add hook/event system 2024-01-23 11:20:19 +09:00
keymap.rs Allow numbers as second input event (#8471) 2024-02-14 11:53:15 +01:00
lib.rs follow neovim's truecolor detection (#9577) 2024-02-11 18:38:09 +01:00
main.rs Add glob file type support (#8006) 2024-02-11 18:24:20 +01:00