diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-24 14:42:48 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-24 14:58:20 -0300 |
| commit | 249e0c92979012fc839ccd7b06643ee8ad5a735e (patch) | |
| tree | c487b3450079aad3d2687ec49f7309fc102e6cde /core/panes.zig | |
| parent | 8d0b21544824051873950ddcae1d4aab027a01fc (diff) | |
| download | pardes-249e0c92979012fc839ccd7b06643ee8ad5a735e.tar.gz pardes-249e0c92979012fc839ccd7b06643ee8ad5a735e.zip | |
rows: a view's top row is read off the geometry it is of, never another's (row scroll round 4, fault 1): `Pane.top_skip` (the top's row in its line and its first byte, a derived cache keyed by the geometry it is of) is read only through `File.topSkip`, the skip walk fillBody had, moved there: one keyed for another geometry is walked again, so the text pass, `topNow` (a step's top) and the map's pass all take the top of the view they draw or step: a step's `show` or `scrollRows` hands the NEXT geometry the byte it found (keyed so), and a view drawn or stepped in before that geometry is made (another view alike the first: a client's own view, drawn by `drawOne` after another client's unit moved the live one's top) took that byte for its own top line (the release soak's client panic, `index 41, len 38`); `geometry` stamps the top it found or took with the key it ends on (the walk brings tables and index up to it), so a text pass after a remade map reads it with no walk; `rowsOf` reads whether rows of the top line are above the top off the fresh map itself (its first body row starts past the line's first byte), not off the cache; the tab's width is in `geometryKey` (a Tab zeroed `geometry_key` and left `top_skip`, whose key then matched again: a row start of the old width trusted, a wrong row drawn and a step's top read wrong): the reset in exec.zig's Tab goes. The other readers of a pane's geometry, every one listed (the report's table): two read it on a step before making it: normal.zig `gotoWindow` read `context_rows` before `shownRows` made the geometry (gt/gb after a step that moved the top past its last geometry: the held rows of the place before; now read after it), and File.zig `rowTable` took its width from `body_wrapped` (the last geometry's) for j/k (`verticalMove`, which makes none): now from what that is made of, the view's `wrap`. The three tests of the change below pass (wip: gate to come)
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'core/panes.zig')
| -rw-r--r-- | core/panes.zig | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/panes.zig b/core/panes.zig index 62814227..8939bd05 100644 --- a/core/panes.zig +++ b/core/panes.zig @@ -322,7 +322,8 @@ pub const Pane = struct { /// Where the view's top is inside its line's rows (File.Top) for the /// geometry of `key`: the row it is and the bytes of the line before /// it, found by the geometry's walk or by the step that put the top - /// there; a frame's text starts there with no walk again. + /// there; read only through File.topSkip, which walks one of another + /// key again (another view's top, a step's for the next geometry). top_skip: struct { key: u64 = 0, row: u32 = 0, at: usize = 0 } = .{}, context_rows: u16 = 0, body_rows: u16 = 0, |
