summaryrefslogtreecommitdiff
path: root/src/builtins.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-10-01 10:23:36 -0300
committerGabriel Schneider <[email protected]>2026-10-01 10:36:28 -0300
commit040620344ee8901582d944dbd04f8167f0a6cbc0 (patch)
tree9a793361f6647f2b3d1ec2544838b79e31411ac0 /src/builtins.zig
parent3f76d4d88245e94a266c24dc23bbba78a00570a3 (diff)
downloadpardes-040620344ee8901582d944dbd04f8167f0a6cbc0.tar.gz
pardes-040620344ee8901582d944dbd04f8167f0a6cbc0.zip
`answer z` quotes `z`, a bare `name` says it names nothing, and `Repl klingon` is invalid (EINVAL), its message citing no doc path
A refused answer quoted the word `answer`, not the choice refused. A `name` with nothing after it was an unknown control message. A Repl of no such language failed EIO with a pointer into the reference; it now says `invalid language` (EINVAL, here and through a mount) and how many more there are. A builtin's failure that says invalid anywhere is EINVAL, as 9ns reads it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'src/builtins.zig')
-rw-r--r--src/builtins.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/builtins.zig b/src/builtins.zig
index 907650bd..b9cf4840 100644
--- a/src/builtins.zig
+++ b/src/builtins.zig
@@ -1368,7 +1368,7 @@ pub const Repl = struct {
// A few, whole, and where the rest are: a list cut to fit the
// row would end mid-word.
var w = std.Io.Writer.fixed(&buf);
- w.print("Repl: no language \"{s}\"; - or one like", .{@import("Messages.zig").clip(arg, 24)}) catch {};
+ w.print("Repl: invalid language \"{s}\"; - or one like", .{@import("Messages.zig").clip(arg, 24)}) catch {};
// Those that start as the word does first, a misspelling's
// likeliest meaning (pithon: python).
var shown: usize = 0;
@@ -1382,7 +1382,7 @@ pub const Repl = struct {
shown += 1;
}
};
- w.print(" ({d} more: docs/typ/reference.typ, REPLs)", .{known - shown}) catch {};
+ w.print(" ({d} more)", .{known - shown}) catch {};
return c.p.reportFailure(c.id, w.buffered());
};
if (pane.repl) |r| if (r.lang == lang)