diff options
Diffstat (limited to 'src/ninep/ctl.zig')
| -rw-r--r-- | src/ninep/ctl.zig | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ninep/ctl.zig b/src/ninep/ctl.zig index d9bd4372..9cb96667 100644 --- a/src/ninep/ctl.zig +++ b/src/ninep/ctl.zig @@ -3059,8 +3059,9 @@ test "a script's Grep and Find fill the pane's one query pane, a row a line unde const rows = grepped.file.?.content; try testing.expect(std.mem.startsWith(u8, rows, "Grep bravo\n")); try testing.expect(std.mem.indexOf(u8, rows, "\nother.txt\n") != null); - try testing.expect(std.mem.indexOf(u8, rows, "2 bravo here\n") != null); - try testing.expect(std.mem.indexOf(u8, rows, "3 three bravo\n") != null); + // each row its place as text, `path:line:col`, the code in one column + try testing.expect(std.mem.indexOf(u8, rows, "\nother.txt:2:1 bravo here\n") != null); + try testing.expect(std.mem.indexOf(u8, rows, "\nother.txt:3:7 three bravo\n") != null); try testing.expectEqual(@as(usize, 2), grepped.query.?.total); try testing.expectEqual(Status.ok, wr(p, Node.of(serialOf(p), .exec), "Find other\n").reply.status); const found = p.panes[p.paneBySerial(try std.fmt.parseInt(u32, std.mem.trimEnd(u8, rd(p, root_exec, 0, 64).bytes, "\n"), 10)).?].?; |
