From f5ac589abf503a2033e1c5b4fad40f326ccab2b4 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Sat, 12 Nov 2022 18:09:00 +0100 Subject: [PATCH] fix: hide scroll if it was shown before. Fixes #216 --- lua/noice/view/nui.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lua/noice/view/nui.lua b/lua/noice/view/nui.lua index 24642f4..3aaf2f5 100644 --- a/lua/noice/view/nui.lua +++ b/lua/noice/view/nui.lua @@ -188,7 +188,9 @@ function NuiView:hide() if self._nui and not self._visible then self:clear() self._nui:unmount() - self._scroll:hide() + if self._scroll then + self._scroll:hide() + end end end, { finally = function()