remove buf_loaded check
As this causes issues (buf switching i.e tbufbnext/tbufprev) not working properly when nvim is opened with multiple files dbb3439982 (commitcomment-77092312)
This commit is contained in:
parent
dbb3439982
commit
73cfdd7367
1 changed files with 1 additions and 1 deletions
|
@ -199,7 +199,7 @@ M.bufilter = function()
|
||||||
local bufs = vim.t.bufs
|
local bufs = vim.t.bufs
|
||||||
|
|
||||||
for i = #bufs, 1, -1 do
|
for i = #bufs, 1, -1 do
|
||||||
if not vim.api.nvim_buf_is_loaded(bufs[i]) then
|
if not vim.api.nvim_buf_is_valid(bufs[i]) then
|
||||||
table.remove(bufs, i)
|
table.remove(bufs, i)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue