feat: [hx] match clipboard behaviour on delete
This commit is contained in:
parent
a0fa079a13
commit
131d9db5ce
1 changed files with 1 additions and 0 deletions
|
|
@ -307,6 +307,7 @@ const cmds_ = struct {
|
||||||
const mv = tui.mainview() orelse return;
|
const mv = tui.mainview() orelse return;
|
||||||
const ed = mv.get_active_editor() orelse return;
|
const ed = mv.get_active_editor() orelse return;
|
||||||
const b = try ed.buf_for_update();
|
const b = try ed.buf_for_update();
|
||||||
|
tui.clipboard_clear_all();
|
||||||
const root = try ed.cut_to(move_noop, b.root);
|
const root = try ed.cut_to(move_noop, b.root);
|
||||||
try ed.update_buf(root);
|
try ed.update_buf(root);
|
||||||
ed.clamp();
|
ed.clamp();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue