mirror of
https://github.com/CompeyDev/my-nvim-setup.git
synced 2024-12-12 12:50:37 +00:00
fix tabufline not showing multiple files on startup | fix #1277
This commit is contained in:
parent
33550e9587
commit
dbb3439982
1 changed files with 1 additions and 1 deletions
|
@ -78,7 +78,7 @@ M.bufferlist = function()
|
|||
local buffers = ""
|
||||
|
||||
for _, nr in ipairs(vim.t.bufs or {}) do -- buf = bufnr
|
||||
if api.nvim_buf_is_loaded(nr) then
|
||||
if api.nvim_buf_is_valid(nr) then
|
||||
local name = (#api.nvim_buf_get_name(nr) ~= 0) and fn.fnamemodify(api.nvim_buf_get_name(nr), ":t")
|
||||
or " No Name "
|
||||
local close_btn = "%" .. nr .. "@TbKillBuf@ %X"
|
||||
|
|
Loading…
Reference in a new issue