From 0c8cd47548296e9eaed766d8569411f9d3193f1f Mon Sep 17 00:00:00 2001 From: Ayman Bagabas Date: Thu, 8 Jan 2026 10:51:46 -0500 Subject: [PATCH] fix(ui): completions: simplify Close method --- internal/ui/completions/completions.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/ui/completions/completions.go b/internal/ui/completions/completions.go index 7e854a6b55ef99691e30ba3566074af3cba2982d..496cd5a56be71fcc7d713be7f9c384fd8c58a307 100644 --- a/internal/ui/completions/completions.go +++ b/internal/ui/completions/completions.go @@ -126,9 +126,8 @@ func (c *Completions) SetFiles(files []string) { } // Close closes the completions popup. -func (c *Completions) Close() tea.Msg { +func (c *Completions) Close() { c.open = false - return ClosedMsg{} } // Filter filters the completions with the given query. @@ -188,7 +187,8 @@ func (c *Completions) Update(msg tea.KeyPressMsg) (tea.Msg, bool) { return c.selectCurrent(false), true case key.Matches(msg, c.keyMap.Cancel): - return c.Close(), true + c.Close() + return ClosedMsg{}, true } return nil, false