Skip to content

Commit

Permalink
fix(renderer): bufnr not closed in time
Browse files Browse the repository at this point in the history
closes: #1415
  • Loading branch information
pysan3 committed Mar 27, 2024
1 parent 934935a commit 5568709
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lua/neo-tree/ui/renderer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1013,6 +1013,9 @@ M.acquire_window = function(state)
vim.api.nvim_win_set_buf(state.winid, state.bufnr)
else
close_old_window()
if state.bufnr and vim.api.nvim_buf_is_valid(state.bufnr) then
vim.api.nvim_buf_delete(state.bufnr, { force = true })
end
win = NuiSplit(win_options)
win:mount()
state.bufnr = win.bufnr
Expand Down

0 comments on commit 5568709

Please sign in to comment.