From dbb34399828eef32cc65d9dcad3c41119a5e9d65 Mon Sep 17 00:00:00 2001 From: siduck Date: Mon, 27 Jun 2022 19:15:28 +0530 Subject: [PATCH] fix tabufline not showing multiple files on startup | fix #1277 --- lua/ui/tabline.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/ui/tabline.lua b/lua/ui/tabline.lua index d4505af..49ce0a7 100644 --- a/lua/ui/tabline.lua +++ b/lua/ui/tabline.lua @@ -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"