From 0ce8f06bd134d2fedb3debbf5e52945e5712286a Mon Sep 17 00:00:00 2001 From: aditya-K2 Date: Sat, 13 May 2023 00:14:55 +0530 Subject: [PATCH] Fix: Context Menu re-opened after closing. When "enter" was pressed (i.e an item was selected) the context menu did close but was redrawn when the window was resized. This commit fixes that. --- ui/root.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/root.go b/ui/root.go index 121c117..de2590f 100644 --- a/ui/root.go +++ b/ui/root.go @@ -64,7 +64,7 @@ func (m *Root) AddCenteredWidget(t CenteredWidget) { } else if e.Key() == tcell.KeyEnter { r, _ := p.GetSelection() sHandler(r) - closeCtx() + deleteCtx() return nil } return e