summaryrefslogtreecommitdiff
path: root/src/File.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/File.zig')
-rw-r--r--src/File.zig5
1 files changed, 4 insertions, 1 deletions
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,