File: src/server/render.zig:818-819 (const state_count = @min(bounds.len, 8); var states: [8]...),
src/screen.zig:1152-1175 (SU), src/screen.zig:1192-1211 (SD)
Severity: LOW
Status: ✅ FIXED
shiftSixelAnchors(-count)) instead of once for an n-line scroll.shiftSixelAnchors(+count) call, mirroring
the non-region branch.MAX_RENDER_PANES = 32 with a comment
marking it a degenerate-layout bound; panes 9..32 now draw and erase their
images correctly.Test: region scroll shifts sixel anchors by full amount — bug #387
(4-line region SU moves anchor by 4; region SD shifts back down).
sixel_last_anchor entries keep forcing needs_erase
every frame (wasted work + invisible sixels).shiftSixelAnchors(+1) although the
non-region branch does (:1218).Images anchored inside regions desync from their marker cells after any multi-line region scroll.
Allocate per-pane state dynamically (or iterate bounds directly), hoist the
anchor shift into the scroll amount (shiftSixelAnchors(-@as(i32,@intCast(n))))
and add the missing SD counterpart.