on main help sign in
fix(tui): completions should not close on no results (#198)
commit833eede1c10e1dcfacfcc6c6e529d3d8b7e7f838 authorCarlos Alexandro Becker <caarlos0@users.noreply.github.com> dateTue 15 Jul 2025, 15:00 (1 year ago) parent5336f3d
1 file changed−4
internal/tui/components/completions/completions.go−4
internal/tui/components/completions/completions.go−4
@@ -157,10 +157,6 @@ func (c *completionsCmp) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
157157 itemsLen := len(c.list.Items())
158158 c.height = max(min(maxCompletionsHeight, itemsLen), 1)
159159 cmds = append(cmds, c.list.SetSize(c.width, c.height))
160− if itemsLen == 0 {
161− // Close completions if no items match the query
162− cmds = append(cmds, util.CmdHandler(CloseCompletionsMsg{}))
163− }
164160 return c, tea.Batch(cmds...)
165161 }
166162 return c, nil