Fix group index bug

This commit is contained in:
hrsh7th
2021-10-22 19:50:14 +09:00
parent 8a10870cbe
commit 530834e8c0

View File

@@ -51,7 +51,7 @@ view.open = function(self, ctx, sources)
group_index = group_index + 1 group_index = group_index + 1
local group = vim.tbl_filter(function(s) local group = vim.tbl_filter(function(s)
return (s:get_config().group or 0) == group_index return (s:get_config().group or 1) == group_index
end, sources) end, sources)
if #group == 0 then if #group == 0 then