From 37fc5ee96828b27ea4aef3688dfac66ed3a0dca4 Mon Sep 17 00:00:00 2001 From: Levi Neely Date: Sun, 5 Apr 2026 11:18:53 +0200 Subject: [PATCH] fix: account for status bar height when sizing viewport --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index d53557b..53c6289 100644 --- a/main.go +++ b/main.go @@ -632,10 +632,10 @@ func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) { switch msg := msg.(type) { case tea.WindowSizeMsg: - // Reserve 1 row for the status bar, 5 for the textarea. m.viewport.Width = msg.Width - m.viewport.Height = msg.Height - 5 - 1 m.textarea.SetWidth(msg.Width) + barHeight := lipgloss.Height(m.renderStatusBar()) + m.viewport.Height = msg.Height - m.textarea.Height() - barHeight m.refreshView() m.ready = true