summaryrefslogtreecommitdiff
path: root/src/edit.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/edit.zig')
-rw-r--r--src/edit.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/edit.zig b/src/edit.zig
index 41859273..93a6f308 100644
--- a/src/edit.zig
+++ b/src/edit.zig
@@ -182,7 +182,7 @@ pub fn clipYank(p: *Pardes, pane: *Pane, main_only: bool) void {
return;
};
if (pane.body.nsel > 0 and !main_only) {
- normal.replaySels(p, &pane.body, .{ .normal = .{ .edit = .{ .kind = .yank, .count = 1 } } });
+ normal.replaySels(p, &pane.body, .{ .normal = .{ .role = .yank } });
} else {
const others = pane.body.nsel;
pane.body.nsel = 0;
@@ -1020,7 +1020,7 @@ fn insertEdit(p: *Pardes, t: *Text, key: Key) void {
const pane = t.pane() orelse break :smart;
const f = pane.file orelse break :smart;
if (!syntax.supportsPath(f.path)) break :smart;
- return normal.nodeSelect(p, pane, t, .parent_end);
+ return normal.nodeSelect(p, pane, t, .parent_node_end);
}
insertTab(p, t);
},