From dd4cdf836215411c7105bfde19eb68c14e7ae9e4 Mon Sep 17 00:00:00 2001 From: Max Date: Sun, 3 Nov 2024 21:51:31 +0100 Subject: [PATCH] fix(menu): close docs when readjusting menu fixes https://github.com/max397574/care.nvim/issues/124 --- lua/care/menu/init.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lua/care/menu/init.lua b/lua/care/menu/init.lua index 54f2fde..d203dbe 100644 --- a/lua/care/menu/init.lua +++ b/lua/care/menu/init.lua @@ -203,6 +203,7 @@ function Menu:readjust_win(offset) self.menu_window:readjust(#self.entries, width, offset) self.reversed = self.config.sorting_direction == "away-from-cursor" and self.menu_window.position == "above" preselect(self) + self.docs_window:close() self:select() end