Skip to content

Commit

Permalink
fix: dont show if window is closed while showing. Fixes #208
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Nov 9, 2022
1 parent edc8df6 commit a8402e8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lua/noice/view/nui.lua
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,9 @@ function NuiView:show()
vim.bo[self._nui.bufnr].modifiable = false

self._nui:show()
if not self._nui.winid then
return
end
self:set_win_options(self._nui.winid)
self:tag()
if not self._visible then
Expand Down

0 comments on commit a8402e8

Please sign in to comment.