on main help sign in
fix(tui): completions: ensure minimum height for completions list
commitb4468381b8557a6f5cf439fd3308e327b529f3fa authorAyman Bagabas <ayman.bagabas@gmail.com> dateThu 24 Jul 2025, 09:45 (1 year ago) parent28aac45
1 file changed+1−1
internal/tui/components/completions/completions.go+1−1
internal/tui/components/completions/completions.go+1−1
@@ -187,7 +187,7 @@ func (c *completionsCmp) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
187187 c.x = c.wWidth - width - 1
188188 }
189189 c.width = width
190− c.height = max(min(c.height, len(items)), 1) // Ensure at least 1 item height
190+ c.height = max(min(maxCompletionsHeight, len(items)), 1) // Ensure at least 1 item height
191191 return c, tea.Batch(
192192 c.list.SetItems(items),
193193 c.list.SetSize(c.width, c.height),