@@ -126,9 +126,8 @@ func (c *Completions) SetFiles(files []string) {
128// Close closes the completions popup.
128// Close closes the completions popup.
129−func (c *Completions) Close() tea.Msg {
129+func (c *Completions) Close() {
130 c.open = false
130 c.open = false
134// Filter filters the completions with the given query.
133// Filter filters the completions with the given query.
@@ -188,7 +187,8 @@ func (c *Completions) Update(msg tea.KeyPressMsg) (tea.Msg, bool) {
188 return c.selectCurrent(false), true
187 return c.selectCurrent(false), true
190 case key.Matches(msg, c.keyMap.Cancel):
189 case key.Matches(msg, c.keyMap.Cancel):
191− return c.Close(), true
190+ c.Close()
191+ return ClosedMsg{}, true
194 return nil, false
194 return nil, false