Fix group index bug
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user