1
0
mirror of https://github.com/helix-editor/helix synced 2024-11-10 10:34:45 +01:00
helix/helix-term/src
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
..
commands Replace DAP vars popup, instead of adding new (#7034) 2023-05-13 10:44:25 -05:00
keymap feat(dap): implement Restart request (#5651) 2023-03-06 18:19:53 +09:00
ui clarify comments about completion savepoints 2023-05-18 15:16:50 +09:00
application.rs tui: Allow toggling mouse capture at runtime (#6675) 2023-04-21 12:53:27 +09:00
args.rs Fix confusion with using --hsplit --vsplit on startup at same time (#4202) 2022-10-11 09:25:42 -04:00
commands.rs fix panic when deleting overlapping ranges 2023-05-18 15:20:55 +09:00
compositor.rs bump msrv to 1.63 (#5570) 2023-02-09 11:24:31 +09:00
config.rs add workspace config and manual LSP root management 2023-03-29 12:57:30 +09:00
health.rs Generalised to multiple runtime directories with priorities (#5411) 2023-03-09 23:50:43 +09:00
job.rs bump msrv to 1.63 (#5570) 2023-02-09 11:24:31 +09:00
keymap.rs add workspace config and manual LSP root management 2023-03-29 12:57:30 +09:00
lib.rs Fix new clippy lints (#5892) 2023-02-09 16:27:08 -06:00
main.rs add workspace config and manual LSP root management 2023-03-29 12:57:30 +09:00