Skip to content

Commit

Permalink
fix: hide scroll if it was shown before. Fixes #216
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Nov 12, 2022
1 parent daadb5e commit f5ac589
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lua/noice/view/nui.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit f5ac589

Please sign in to comment.