summaryrefslogtreecommitdiff
path: root/src/panes.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/panes.zig')
-rw-r--r--src/panes.zig5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/panes.zig b/src/panes.zig
index 1e5be107..a67aa8ac 100644
--- a/src/panes.zig
+++ b/src/panes.zig
@@ -101,6 +101,10 @@ pub const Pane = struct {
image: ?Image.State = null,
pdf: PdfSlot = if (Pdf.enabled) null else {},
prompt: Prompt = .none,
+ /// The text an open prompt answers for: `s`/`S` select in it and `|`
+ /// pipes it. A header's is whichever has the keyboard; `/` and Save's
+ /// path always answer for the body.
+ prompt_for: Text.What = .body,
/// The answer to an open prompt: its marker and what is typed after it,
/// edited in insert mode and shown on the notice band, or a name draft
/// shown on the tagline in place of the path. It is its own text so a
@@ -314,6 +318,7 @@ pub const Pane = struct {
pub fn closePrompt(pane: *Pane) void {
pane.input.deinit(pane.gpa);
pane.prompt = .none;
+ pane.prompt_for = .body;
pane.nsel_snap = 0;
}