summaryrefslogtreecommitdiff
path: root/src/pardes.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-09-29 07:56:59 -0300
committerGabriel Schneider <[email protected]>2026-10-01 00:12:16 -0300
commit0b359e1f99f1a2630969c1c00b6c71db3b794ccd (patch)
tree3c35b7e20237ce0690372c233ceeb96a244904a9 /src/pardes.zig
parent411d0b6059192b75853e220e1242b694ae461a3e (diff)
downloadpardes-0b359e1f99f1a2630969c1c00b6c71db3b794ccd.tar.gz
pardes-0b359e1f99f1a2630969c1c00b6c71db3b794ccd.zip
A Save refused for want of a name counts as a failure, so its announcement goes
A builtin that would open a prompt nobody can answer (Save with no name on a scratch, through a ctl write) failed the write without saying a failure, so the announcement rule missed it and `msg N Save` stayed. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'src/pardes.zig')
-rw-r--r--src/pardes.zig2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pardes.zig b/src/pardes.zig
index 72a90244..9ba8a2d3 100644
--- a/src/pardes.zig
+++ b/src/pardes.zig
@@ -6007,6 +6007,8 @@ pub const Pardes = struct {
// ctl file: the write fails instead (src/ninep/ctl.zig).
if (p.fs.no_prompt) {
p.fs.refused = true;
+ // A failure like any other: the builtin's announcement goes.
+ p.fs.failures +%= 1;
return;
}
// Asked for over 9P (Save from an exec on a terminal): a question