소스 검색

fix(bufferline): fallback to empty table if `buf_nums` is nil (#3473)

fixes https://github.com/LunarVim/LunarVim/issues/3367
LostNeophyte 2 년 전
부모
커밋
1a4233ea8d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      lua/lvim/core/bufferline.lua

+ 1 - 1
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