summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/builtins.zig9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/builtins.zig b/src/builtins.zig
index 87679f64..074d1328 100644
--- a/src/builtins.zig
+++ b/src/builtins.zig
@@ -169,6 +169,12 @@ test "capabilities exactly gate setting and effect-source builtins" {
try std.testing.expectEqual(EffectCode.enabled, effect_code_registered);
}
+test "Look does not announce itself on the message row; Del still does" {
+ const Builtin = registry.Builtin();
+ try std.testing.expect(!registry.announces(Builtin.Look));
+ try std.testing.expect(registry.announces(Builtin.Del));
+}
+
test "Ligatures is a setting only in the shell that shapes text" {
const exists = @hasField(registry.Builtin(), "Ligatures");
try std.testing.expectEqual(pardes.platform == .gui, exists);
@@ -203,6 +209,9 @@ comptime {
pub const Look = struct {
pub const takes_arg = true;
+ // a look's answer is the pane it opens or the place it jumps to; its own
+ // name on the message row would only be noise over that
+ pub const quiet = true;
pub fn run(c: Ctx) void {
c.p.lookAt(c.id, c.arg orelse return);
}