Skip to content

Commit

Permalink
fix: unmount on BufWinLeave instead of hide. Fixes #14
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Oct 4, 2022
1 parent b2e2b6d commit b8b96e2
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 @@ -65,7 +65,9 @@ function NuiView:create()

self._nui:on({ Event.BufWinLeave }, function()
vim.schedule(function()
self:hide()
self._visible = false
self._nui:unmount()
self._nui = nil
end)
end, { once = false })

Expand Down

0 comments on commit b8b96e2

Please sign in to comment.