From b4468381b8557a6f5cf439fd3308e327b529f3fa Mon Sep 17 00:00:00 2001 From: Ayman Bagabas Date: Thu, 24 Jul 2025 09:45:58 -0400 Subject: [PATCH] fix(tui): completions: ensure minimum height for completions list --- internal/tui/components/completions/completions.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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),