forked from Mirrors/helix
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`pull/16/head
parent
e4a9bec562
commit
70e4cdbd8e
Loading…
Reference in New Issue