famiu / bufdelete.nvim

Delete Neovim buffers without losing window layout
GNU General Public License v3.0
515 stars 16 forks source link

Fix bufdelete showing wrong next buffer #5

Closed famiu closed 3 years ago

famiu commented 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.

Fixes #4