Skip to content

Commit 81017b9

Browse files
committed
fix(cache): de-duplicate topmods. Fixes #349
1 parent 70e5e08 commit 81017b9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lua/lazy/core/cache.lua

+3-1
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,9 @@ function M._index(path)
246246
if not vim.tbl_contains(M.topmods[topname], path) then
247247
table.insert(M.topmods[topname], path)
248248
end
249-
table.insert(M.indexed[path], topname)
249+
if not vim.tbl_contains(M.indexed[path], topname) then
250+
table.insert(M.indexed[path], topname)
251+
end
250252
end
251253
end)
252254
return true

0 commit comments

Comments
 (0)