diff --git a/internal/tui/components/completions/completions.go b/internal/tui/components/completions/completions.go index fae46d70d806f6847eeb40ea9b727da1671145d9..ab29d900010bb2a80e4e2b7d6135e44f6486769c 100644 --- a/internal/tui/components/completions/completions.go +++ b/internal/tui/components/completions/completions.go @@ -187,7 +187,7 @@ func (c *completionsCmp) Update(msg tea.Msg) (tea.Model, tea.Cmd) { c.x = c.wWidth - width - 1 } c.width = width - c.height = max(min(c.height, len(items)), 1) // Ensure at least 1 item height + c.height = max(min(maxCompletionsHeight, len(items)), 1) // Ensure at least 1 item height return c, tea.Batch( c.list.SetItems(items), c.list.SetSize(c.width, c.height),