1
0
Fork 0
mirror of https://github.com/CompeyDev/my-nvim-setup.git synced 2025-04-13 10:40:54 +01:00

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

This commit is contained in:
Galen Rowell 2021-08-20 15:44:31 +10:00 committed by siduck76
parent fd5d50f194
commit dbf0b56059

View file

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