From d2b04b2a24a04b5de1416b33f37637f59dda71ee Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Thu, 5 Nov 2026 20:05:20 -0300 Subject: split pardes.zig by noun, the small moves: a header's word under a column (WordBounds, wordBoundsAtCol) goes to tagline.zig, the two frontend pixel helpers for tag bands (taglineBandOffset, topbarPaneBorderPixels) to Layer.zig with their test, the look walk's row budget (max_look_rows) to look.zig, its only reader; their callers name them there (draw.zig, mouse.zig, gui.zig, and macos.zig's two by text, built nowhere here); pathUnder goes, called from nowhere; the help index stays in the root, as builtins.zig's registry walks that file's own declarations and the index's rows depend on the registry (a dependency loop), and the theme's three accessors stay with the session, as colors.zig's locals are named theme; test moved, by name: tagline bands center in their cells and Tagbottom faces the window edge (to Layer.zig); a pure move, no field touched, a dump and the wire as they were; gates: tui core-test 960/960, behaviour-test 238/238, snap all 108 scripts ok, gui unit-test 1518/1519 (1 skipped) Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge --- src/look.zig | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/look.zig') diff --git a/src/look.zig b/src/look.zig index 7b39f113..25ec029d 100644 --- a/src/look.zig +++ b/src/look.zig @@ -866,7 +866,7 @@ pub fn lookWalk(p: *Pardes, delta: i32) void { else active_at; var from = lookStand(p.panes[order[at]] orelse return); - var budget: usize = Pardes.max_look_rows; + var budget: usize = max_look_rows; var k: usize = 0; while (k <= order.len) : (k += 1) { // `+ 2 * len` only so the backward subtraction stays unsigned @@ -2724,3 +2724,6 @@ test "Look on a diff line is the look of the address it names, selected by hand: try std.testing.expect(std.mem.endsWith(u8, seen[0].active_path, "/entry/src/entry.rs")); try std.testing.expectEqual(@as(i32, 1), seen[0].row); } + +/// The rows n/N's walk over look-able text reads before it stops (look.zig). +pub const max_look_rows = 8192; -- cgit v1.3