Skip to content

Commit

Permalink
fix: do render after mount Fixes #150
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Oct 28, 2022
1 parent a2acf3b commit 7e2e449
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lua/noice/view/nui.lua
Original file line number Diff line number Diff line change
Expand Up @@ -257,14 +257,14 @@ function NuiView:show()
self:create()
end

vim.bo[self._nui.bufnr].modifiable = true
self:render(self._nui.bufnr)
vim.bo[self._nui.bufnr].modifiable = false

if not self._nui._.mounted then
self._nui:mount()
end

vim.bo[self._nui.bufnr].modifiable = true
self:render(self._nui.bufnr)
vim.bo[self._nui.bufnr].modifiable = false

self._nui:show()
self:set_win_options(self._nui.winid)
self:tag()
Expand Down

0 comments on commit 7e2e449

Please sign in to comment.