Skip to content

Commit be85280

Browse files
committed
fix(status): make sure only valid buffers are passed to heirline tabline
1 parent ff365ce commit be85280

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lua/astroui/status/heirline.lua

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,10 @@ M.make_buflist = function(component)
7878
),
7979
{ provider = get_icon "ArrowLeft" .. " ", hl = overflow_hl },
8080
{ provider = get_icon "ArrowRight" .. " ", hl = overflow_hl },
81-
function() return vim.t.bufs or {} end, -- use astronvim bufs variable
81+
function()
82+
vim.t.bufs = vim.tbl_filter(buf_utils.is_valid, vim.t.bufs or {})
83+
return vim.t.bufs
84+
end, -- use astronvim bufs variable
8285
false -- disable internal caching
8386
)
8487
end

0 commit comments

Comments
 (0)