quickfix for not properly closing unlisted buffers, should be revised again

navigator
Galen Rowell 3 years ago committed by siduck76
parent fd5d50f194
commit dbf0b56059

@ -82,6 +82,7 @@ M.close_buffer = function(bufexpr, force)
local buf = vim.fn.bufnr()
if vim.fn.buflisted(buf) == 0 then -- exit if buffer number is invalid
vim.cmd "close"
return
end

Loading…
Cancel
Save