From 2e53b6b7a159d9f650d0a481a32e133af5aa48b1 Mon Sep 17 00:00:00 2001 From: bashbunni Date: Thu, 17 Oct 2024 09:29:43 -0700 Subject: [PATCH] refactor(example): remove magic number --- examples/table/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/table/main.go b/examples/table/main.go index 24fcf1b149..413ac26f46 100644 --- a/examples/table/main.go +++ b/examples/table/main.go @@ -23,7 +23,7 @@ func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) { var cmd tea.Cmd switch msg := msg.(type) { case tea.WindowSizeMsg: - m.table.SetHeight(msg.Height - 1) + m.table.SetHeight(msg.Height) case tea.KeyMsg: switch msg.String() { case "esc":