summaryrefslogtreecommitdiff
path: root/src/File.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-10-24 11:57:26 -0300
committerGabriel Schneider <[email protected]>2026-10-24 11:57:35 -0300
commit51903dd947f90381d1a908c488a019289a1c8413 (patch)
treeab5b2574642493c60476e6e9bcd7cc0e1c5e8d9e /src/File.zig
parent18d89dcedaed1f8437799621675e88ca47d7cdc1 (diff)
downloadpardes-51903dd947f90381d1a908c488a019289a1c8413.tar.gz
pardes-51903dd947f90381d1a908c488a019289a1c8413.zip
Search converge 3/6: the query pane, line 1 the query and its first word the source, rows made live like Callstack's, the owner's places showing the set, a +Preview promoted in place, Enter freezes, Esc restores
Diffstat (limited to 'src/File.zig')
-rw-r--r--src/File.zig2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/File.zig b/src/File.zig
index 3db22f95..f633cad0 100644
--- a/src/File.zig
+++ b/src/File.zig
@@ -598,6 +598,8 @@ pub fn gutterWidth(pane: *const Pane) u16 {
// pager and delta show none.
if (file.pager) return 0;
if (file.output) |o| if (std.meta.eql(o.from, Output.Origin{ .cmd = .Diff })) return 0;
+ // A query pane's rows carry their own line numbers (Query.zig).
+ if (pane.query != null) return 0;
var lines = if (file.line_starts.len > 0) file.line_starts.len else lineCount(file.content);
var digits: u16 = 1;
while (lines >= 10) : (lines /= 10) digits += 1;