From 023e6c8baf2410da606440a9e2e8002d92fd3815 Mon Sep 17 00:00:00 2001 From: name_snrl Date: Mon, 11 Dec 2023 14:20:11 +0500 Subject: [PATCH] fix: in UI:select_menu_item close the menu first --- lua/harpoon/ui.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lua/harpoon/ui.lua b/lua/harpoon/ui.lua index aa16521..02b2fb5 100644 --- a/lua/harpoon/ui.lua +++ b/lua/harpoon/ui.lua @@ -168,8 +168,9 @@ function HarpoonUI:select_menu_item(options) options ) - self.active_list:select(idx, options) + list = self.active_list self:close_menu() + list:select(idx, options) end function HarpoonUI:save()