Skip to content

Commit

Permalink
fix(renderer): check if current buffer is loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
pysan3 committed Mar 20, 2024
1 parent 6011391 commit 19e3319
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/neo-tree/ui/renderer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1087,7 +1087,7 @@ M.window_exists = function(state)
window_exists = false
elseif position == "current" then
window_exists = vim.api.nvim_win_is_valid(winid)
and vim.api.nvim_buf_is_valid(bufnr)
and vim.api.nvim_buf_is_loaded(bufnr)
and vim.api.nvim_win_get_buf(winid) == bufnr
else
local isvalid = M.is_window_valid(winid)
Expand Down

0 comments on commit 19e3319

Please sign in to comment.