@@ -187,7 +187,7 @@ func (c *completionsCmp) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
187 c.x = c.wWidth - width - 1
187 c.x = c.wWidth - width - 1
189 c.width = width
189 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
191 return c, tea.Batch(
191 return c, tea.Batch(
192 c.list.SetItems(items),
192 c.list.SetItems(items),
193 c.list.SetSize(c.width, c.height),
193 c.list.SetSize(c.width, c.height),