From a539f664fdd0160ef2b7c45dc18a5bcc725cb2b5 Mon Sep 17 00:00:00 2001 From: Michael Paulson Date: Fri, 1 Dec 2023 13:18:28 -0700 Subject: [PATCH] fix: save_on_toggle --- lua/harpoon/ui.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lua/harpoon/ui.lua b/lua/harpoon/ui.lua index 76fcaa6..2ecab2b 100644 --- a/lua/harpoon/ui.lua +++ b/lua/harpoon/ui.lua @@ -97,6 +97,9 @@ function HarpoonUI:toggle_quick_menu(list) count = count + 1 if list == nil or self.win_id ~= nil then + if self.settings.save_on_toggle then + self:save() + end self:close_menu() return end