@@ -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),