diff options
| author | Paul Buetow <paul@buetow.org> | 2026-03-05 21:50:58 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-03-05 21:50:58 +0200 |
| commit | a4298701546b09fccb15ce30db7c7e3f4070525c (patch) | |
| tree | b3433014284ccd354be48efb2ce125ccaf236d7e /internal/tui/pidpicker/model_test.go | |
| parent | 2bd89ced830f97fd12a672fddb6978d204a014fd (diff) | |
fix(tui): stabilize full-width layout and sparkline rendering
Diffstat (limited to 'internal/tui/pidpicker/model_test.go')
| -rw-r--r-- | internal/tui/pidpicker/model_test.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/internal/tui/pidpicker/model_test.go b/internal/tui/pidpicker/model_test.go index c47e59b..038575b 100644 --- a/internal/tui/pidpicker/model_test.go +++ b/internal/tui/pidpicker/model_test.go @@ -152,3 +152,13 @@ func TestRenderRowsKeepsSelectionVisible(t *testing.T) { t.Fatalf("expected selected row to remain visible, got:\n%s", rows) } } + +func TestWindowSizeDoesNotCapInputWidthOnWideTerminals(t *testing.T) { + m := NewWithKeys(DefaultKeyMap()) + next, _ := m.Update(tea.WindowSizeMsg{Width: 160, Height: 40}) + updated := next.(Model) + + if got, want := updated.input.Width(), 144; got != want { + t.Fatalf("expected input width %d for 160-col terminal, got %d", want, got) + } +} |
