diff options
Diffstat (limited to 'src/edit.zig')
| -rw-r--r-- | src/edit.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/edit.zig b/src/edit.zig index ec37d0e3..834911f6 100644 --- a/src/edit.zig +++ b/src/edit.zig @@ -79,7 +79,7 @@ pub fn pasteRegister(p: *Pardes, t: *Text, how: Paste, count: usize) void { if (name == '+' or name == '*') { if (!normal.multiOnce(p)) return; const pane = t.pane() orelse return; - return clipRequest(p, p.paneIdOf(pane) orelse return, how); + return clipRequest(p, panes.paneIdOf(p, pane) orelse return, how); } const y = registerValue(p, t, name) orelse return; switch (how) { @@ -141,7 +141,7 @@ pub fn applyPaste(p: *Pardes, whole: []const u8) void { n += 1; }; if (n > 0) insertKey(p, &pane.input, .{ .cp = line[0], .text = line[0..n] }); - if (normal.selRegexArmed(pane)) |a| if (p.promptTarget(pane)) |t| normal.applySelRegex(p, pane, t, a.pat, a.mode); + if (normal.selRegexArmed(pane)) |a| if (panes.promptTarget(p, pane)) |t| normal.applySelRegex(p, pane, t, a.pat, a.mode); return; } if (pane.focus == .tag) return pasteInto(p, &pane.tag, bytes); |
