helix-mods/helix-core
Szabin 70e4cdbd8e
Add command to merge non-consecutive ranges (#7053)
* Add command for merging non-consecutive ranges

* Add `merge_selections` command to book

* Simplify `merge_ranges`

Heeded the advice of @the-mikedavis to stop iterating over all ranges and simply merge the first and the last range, as the invariants of `Selection` guarantee that the list of ranges is always sorted and never empty.

* Clarify doc comment of `merge_ranges`
2023-05-20 01:31:39 +02:00
..
src Add command to merge non-consecutive ranges (#7053) 2023-05-20 01:31:39 +02:00
tests automatically disable TS when parsing takes longer than 500ms 2023-05-18 15:23:37 +09:00
.gitignore Initial import. 2020-05-20 18:14:51 +09:00
Cargo.toml build(deps): bump etcetera from 0.7.1 to 0.8.0 (#6931) 2023-05-02 09:57:45 +09:00