You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
TUI scan viewport height goes negative on terminals shorter than 9 rows #37
On a terminal shorter than 9 rows (a tmux split, a small IDE terminal), the scan-view viewport height goes negative, and rendering breaks. This is ROADMAP N6.
Evidence
internal/tui/scan_view.go:65: m.viewport.Height = msg.Height - 8, with no clamp.
The initial size in newScanViewModel should be checked for the same pattern.
Suggested approach
Clamp to max(1, msg.Height-8), and the width likewise. Optionally show a "terminal too small" notice below a minimum size.
Done when
A scan_view_test.go case sends tea.WindowSizeMsg{Height: 3} and the view renders without a negative height or a panic.
Activity