diff options
author | LostNeophyte <[email protected]> | 2022-11-16 11:21:50 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2022-11-16 11:21:50 +0100 |
commit | 1a4233ea8d146acc3e78a467cadf8ea6abc82e40 (patch) | |
tree | 470823f0a1af32cc6b24bd7df8b458eddaefe8c2 /lua/lvim/core | |
parent | 358ebdfe715ef10b77d2e5eb94ae5b2425bd8907 (diff) |
fix(bufferline): fallback to empty table if `buf_nums` is nil (#3473)
fixes https://github.com/LunarVim/LunarVim/issues/3367
Diffstat (limited to 'lua/lvim/core')
-rw-r--r-- | lua/lvim/core/bufferline.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/lvim/core/bufferline.lua b/lua/lvim/core/bufferline.lua index 6da9a6a6..a9b35cff 100644 --- a/lua/lvim/core/bufferline.lua +++ b/lua/lvim/core/bufferline.lua @@ -26,7 +26,7 @@ end local function custom_filter(buf, buf_nums) local logs = vim.tbl_filter(function(b) return is_ft(b, "log") - end, buf_nums) + end, buf_nums or {}) if vim.tbl_isempty(logs) then return true end |