Skip to content

Commit e5e9bf4

Browse files
committed
test: fix tests
1 parent f81a3fb commit e5e9bf4

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

lua/lazy/core/meta.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ function M:fix_disabled()
306306
local changes = 0
307307
local function check(top)
308308
for _, plugin in pairs(self.plugins) do
309-
if plugin._.top == top then
309+
if (plugin._.top or false) == top then
310310
if plugin.enabled == false or (type(plugin.enabled) == "function" and not plugin.enabled()) then
311311
changes = changes + 1
312312
if plugin.optional then

tests/core/plugin_spec.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ local function clean(plugins)
2525
if plugin._.dep == false then
2626
plugin._.dep = nil
2727
end
28+
plugin._.top = nil
2829
return plugin
2930
end, plugins)
3031
end

0 commit comments

Comments
 (0)