Severity: MEDIUM
Status: ❌ FALSE POSITIVE (intentional design)
Files: src/grid.zig, docs/text_reflow.md
On closer inspection against the architecture specification in docs/text_reflow.md, this is deliberate and tested behavior:
docs/text_reflow.md Section 5:
process_limit (the last non-empty row containing actual text). Trailing empty rows at the bottom of the screen are ignored to prevent them from scrolling active text into history.”grid.history).”src/grid.zig:1418, test "setSize reflows content" explicitly tests and asserts this exact behavior:
// Content is reflowed: all lines (history + visible) are rewrapped.
// History A,B,C come first, then visible D,E
try testing.expectEqual(@as(u21, 'A'), grid.getCell(0, 0).char);
...
try testing.expectEqual(@as(usize, 0), grid.history.items.len);
forceReflowCursor upon copy-mode entry (enterCopyMode), where the window geometry was not changing (new_width == self.width), so no reflow or layout shifting should occur. On genuine width changes (new_width != self.width), unwrapping logical text and filling the screen with recent content is the designed behavior.