From 3f4ba3490904da77c4b244c21017fcf94f3bb198 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Tue, 29 Sep 2026 12:20:56 -0300 Subject: A look miss said again is its err record counted, as any repeated err is Look's miss pushed its err record plain, so a script retrying one look filled the log with the same line, where other errs are counted (x2). Co-Authored-By: Claude Opus 5.5 --- src/ninep/ctl.zig | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/ninep/ctl.zig') diff --git a/src/ninep/ctl.zig b/src/ninep/ctl.zig index 2c6d2010..7321f569 100644 --- a/src/ninep/ctl.zig +++ b/src/ninep/ctl.zig @@ -2710,6 +2710,9 @@ test "a builtin that fails through exec, tagexec or a column's exec fails the wr _ = wr(p, @intFromEnum(tree.TopFile.look), "zzqqnotthere\n"); try testing.expect(th.logHas(p, "look: no match for \"zzqqnotthere\"")); try testing.expect(!th.logHas(p, "msg 1 Look: no match")); + // The same miss again is that record counted, as any repeated err is. + _ = wr(p, @intFromEnum(tree.TopFile.look), "zzqqnotthere\n"); + try testing.expect(th.logHas(p, "look: no match for \"zzqqnotthere\" (x2)\n")); } test "a word written to a raw terminal's look is listed as in normal mode" { -- cgit v1.3