famiu/bufdelete.nvim

Show wrong next buffer

Nguyen-Hoang-Nam opened this issue · 2 comments

ls

However, vim.api.nvim_buf_is_loaded(2) return true. Therefore, when I delete buffer 29, buffer 2 will show next. I checked nvim-bufferline and found that they use vim.bo[buf].buflisted and vim.api.nvim_buf_is_valid(buf).

tree

famiu commented

Can you check if #5 works and whether it fixes your issue. If it does, I can merge the PR

@famiu I tried and it's working fine now