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
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.
8 months ago
..
src Fix panic in surround_replace/delete nested multi-cursor (#9815) 8 months ago
tests Fix panic in surround_replace/delete nested multi-cursor (#9815) 8 months ago
.gitignore Initial import. 5 years ago
Cargo.toml build(deps): bump arc-swap from 1.6.0 to 1.7.0 (#9809) 9 months ago
build.rs Add icon to Windows executable (#9104) 10 months ago