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/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.
4 months ago
..
commands Add glob file type support (#8006) 5 months ago
languages Fix YAML auto indent 11 months ago
auto_indent.rs migrate test_with_config to use AppBuilder 1 year ago
auto_pairs.rs Add config for default line ending (#5621) 1 year ago
commands.rs Fix panic when using join_selections_space (#9783) 4 months ago
helpers.rs Add glob file type support (#8006) 5 months ago
movement.rs Fix panic in surround_replace/delete nested multi-cursor (#9815) 4 months ago
prompt.rs flush writes on force quit (#4397) 2 years ago
splits.rs Create helix-stdx crate for stdlib extensions 6 months ago