helix-mirror/helix-term/tests/test
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 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 panic in surround_replace/delete nested multi-cursor (#9815) 2024-03-08 02:20:07 +09: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