fix(tui): preserve composer width on narrow panes

This commit is contained in:
Brooklyn Nicholson
2026-04-26 04:35:54 -05:00
parent bbd950efcf
commit 8f0fa0836f
2 changed files with 7 additions and 7 deletions

View File

@@ -42,9 +42,9 @@ describe('input metrics helpers', () => {
expect(inputVisualHeight('one\ntwo', 40)).toBe(2)
})
it('reserves gutters without exceeding the physical terminal width', () => {
it('reserves gutters on wide panes without starving narrow composer width', () => {
expect(stableComposerColumns(100, 3)).toBe(93)
expect(stableComposerColumns(10, 3)).toBe(3)
expect(stableComposerColumns(10, 3)).toBe(5)
expect(stableComposerColumns(6, 3)).toBe(1)
})
})