feat(keybind): special case disable_selection in delete_selection

This commit is contained in:
CJ van den Berg 2025-01-22 15:29:01 +01:00
parent 0368bb15a6
commit a4ac3a42fd
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9

View file

@ -1804,7 +1804,7 @@ pub const Editor = struct {
var sel: Selection = cursel.selection orelse return error.Stop;
sel.normalize();
cursel.cursor = sel.begin;
cursel.disable_selection(root, self.metrics);
cursel.disable_selection_normal();
var size: usize = 0;
const root_ = try root.delete_range(sel, allocator, &size, self.metrics);
self.nudge_delete(sel, cursel, size);