summaryrefslogtreecommitdiff
path: root/src/normal.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/normal.zig')
-rw-r--r--src/normal.zig14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/normal.zig b/src/normal.zig
index 6a65ee3e..1209fb1e 100644
--- a/src/normal.zig
+++ b/src/normal.zig
@@ -59,7 +59,7 @@ fn startSelRegex(p: *Pardes, pane: *Pane, t: *Text, mode: modal.Normal.RegexMode
pane.nsel_snap = @intCast(got.n);
pane.sel_snap_pri = @intCast(got.pri);
pane.sel_snap_expl = t.vsel.active and t.vsel.explicit;
- p.startPrompt(pane, t, .{ .search = regexMarker(mode) });
+ panes.startPrompt(p, pane, t, .{ .search = regexMarker(mode) });
}
fn regexMarker(mode: modal.Normal.RegexMode) []const u8 {
@@ -837,17 +837,17 @@ fn executeNormalAction(p: *Pardes, t: *Text, a: modal.Normal.Action) void {
.column, .workspace => tagline.exitHeader(p),
.body, .input => tagline.enterTag(p, pane),
},
- .pipe_selection => return p.startPrompt(pane, t, .{ .pipe = .replace }),
- .pipe_selection_to => return p.startPrompt(pane, t, .{ .pipe = .ignore }),
- .insert_output => return p.startPrompt(pane, t, .{ .pipe = .insert }),
- .append_output => return p.startPrompt(pane, t, .{ .pipe = .append }),
- .keep_pipe => return p.startPrompt(pane, t, .{ .pipe = .keep }),
+ .pipe_selection => return panes.startPrompt(p, pane, t, .{ .pipe = .replace }),
+ .pipe_selection_to => return panes.startPrompt(p, pane, t, .{ .pipe = .ignore }),
+ .insert_output => return panes.startPrompt(p, pane, t, .{ .pipe = .insert }),
+ .append_output => return panes.startPrompt(p, pane, t, .{ .pipe = .append }),
+ .keep_pipe => return panes.startPrompt(p, pane, t, .{ .pipe = .keep }),
// `/` in a text is its query pane's line 1 (Query.zig); a
// terminal's still asks on the notice band.
.search => if (pane.file != null and t.what == .body)
panes.Query.open(p, p.active, .text, "", true)
else
- return p.startPrompt(pane, &pane.body, .{ .search = config.search_marker }),
+ return panes.startPrompt(p, pane, &pane.body, .{ .search = config.search_marker }),
// In a file's text, n and N step its places while they answer for
// the register (Places.answersN); else helix's search of the register.
.search_next, .search_prev => if (t.what == .body and pane.file != null and pane.places.answersN(p, pane))