Skip to content

Commit

Permalink
fix(get_bufs): also list unloaded buffer, use nvim_buf_get_option (fa…
Browse files Browse the repository at this point in the history
…ster)
  • Loading branch information
rebelot committed Sep 6, 2022
1 parent 6ce8e76 commit 440da6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/heirline/utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ end

local function get_bufs()
return vim.tbl_filter(function(bufnr)
return vim.api.nvim_buf_is_loaded(bufnr) and vim.bo[bufnr].buflisted
return vim.api.nvim_buf_get_option(bufnr, "buflisted")
end, vim.api.nvim_list_bufs())
end

Expand Down

0 comments on commit 440da6b

Please sign in to comment.