From f3b5bd10ceb4c4db7263739770d5e4bdb879ba75 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Sat, 24 Oct 2026 14:16:32 -0300 Subject: Search converge 7/6: a script's Grep or Find that misses opens nothing, a dumped query pane restores as plain text; fs.py's Recent and canary to the query pane --- src/File.zig | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/File.zig') diff --git a/src/File.zig b/src/File.zig index f633cad0..24dc9318 100644 --- a/src/File.zig +++ b/src/File.zig @@ -244,7 +244,10 @@ pub fn dumpPane( .collapsed = pane.collapsed, .file = .{ .tree_context = file.tree_context, - .location_rows = try dumpLocationRows(arena, file.location_rows), + // A query pane's rows are its own (line 1 the query, gutter + // numbers), not location rows Restore reads: it comes back as + // plain text. + .location_rows = if (pane.query != null) &.{} else try dumpLocationRows(arena, file.location_rows), .path = file.path, .content_b64 = if (from_disk) "" else try dump.encodeBytes(arena, file.content), .dirty = dirty, -- cgit v1.3