summaryrefslogtreecommitdiff
path: root/src/surface.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-09-28 14:13:25 -0300
committerGabriel Schneider <[email protected]>2026-10-01 00:12:15 -0300
commit7284b72396398213356577345151bd79e497d27c (patch)
tree60e98eed31c4469b967f427996a8767eaaea77d8 /src/surface.zig
parent0de2e7f04977b22df3f7b6ab1690eb8a6c905cd4 (diff)
downloadpardes-7284b72396398213356577345151bd79e497d27c.tar.gz
pardes-7284b72396398213356577345151bd79e497d27c.zip
Paint a body with context rows once, into its layer, and join it
joinBody replaces the second paint of a file body with compact tree-sitter context rows: the body is painted once into its body layer (more rows than the grid has) and the grid's body rows are copies of the layer's first ones; the rail is the grid's alone, from its region. Which rows are context rows is still decided by a text build before the paint, and a body without them reuses that text and paints straight onto the grid: every other body has no row the grid cannot show, so it gets no layer and no copy. Each part now paints only its own rows. The tag paints the tag rows of every pointer sweep that crosses them (the select sweep in the tag's colours, the look-hover affordance over it, a middle or right sweep over both in its button's tint), which the body used to paint over the tag on the grid alone; the body paints only body rows, and a select sweep begun on the tag marks the body rows it crossed before the text is laid down, as it did. Grid and layers agree, the snapshot goldens are byte-identical, and a test checks the joined grid rows and caret against a plain paint of the same body with the tag on top and at the bottom. The GUI goldens gain a terminal pane scene.
Diffstat (limited to 'src/surface.zig')
0 files changed, 0 insertions, 0 deletions