Closed famiu closed 3 years ago
Use vim.bo[buf].buflisted and vim.api.nvim_buf_is_valid(buf) instead of vim.api.nvim_buf_is_loaded(buf) to fix bufdelete picking incorrect buffer to switch to.
vim.bo[buf].buflisted and vim.api.nvim_buf_is_valid(buf)
vim.api.nvim_buf_is_loaded(buf)
Fixes #4
Use
vim.bo[buf].buflisted and vim.api.nvim_buf_is_valid(buf)
instead ofvim.api.nvim_buf_is_loaded(buf)
to fix bufdelete picking incorrect buffer to switch to.Fixes #4