summaryrefslogtreecommitdiff
path: root/src/pardes.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/pardes.zig')
-rw-r--r--src/pardes.zig6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/pardes.zig b/src/pardes.zig
index 321a6b3c..fbc3e119 100644
--- a/src/pardes.zig
+++ b/src/pardes.zig
@@ -5081,6 +5081,12 @@ pub const Pardes = struct {
pipe: modal.Normal.PipeBehavior,
save,
}) void {
+ // Nobody is at the keyboard to answer a command a script wrote to a
+ // ctl file: the write fails instead (src/ninep/ctl.zig).
+ if (p.fs.no_prompt) {
+ p.fs.refused = true;
+ return;
+ }
const marker = switch (request) {
.search => |marker| marker,
.save => config.save_marker,