1
0
mirror of https://github.com/helix-editor/helix synced 2024-11-10 10:34:45 +01:00
helix/helix-term
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 fix panic when deleting overlapping ranges 2023-05-18 15:20:55 +09:00
.gitignore
build.rs
Cargo.toml build(deps): bump libc from 0.2.142 to 0.2.144 (#7000) 2023-05-09 09:30:11 +09:00