helix-mods/helix-core
Pascal Kuthe f8225ed921 fix panic when deleting overlapping ranges
Some deletion operations (especially those that use indentation)
can generate overlapping deletion ranges when using multiple cursors.
To fix that problem a new `Transaction::delete` and
`Transaction:delete_by_selection` function were added. These functions
merge overlapping deletion ranges instead of generating an invalid
transaction. This merging of changes is only possible for deletions
and not for other changes and therefore require its own function.

The function has been used in all commands that currently delete
text by using `Transaction::change_by_selection`.
2023-05-18 15:20:55 +09:00
..
src fix panic when deleting overlapping ranges 2023-05-18 15:20:55 +09:00
tests Test indentation level calculation (#6281) 2023-03-12 12:41:07 -05: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