We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f81a3fb commit e5e9bf4Copy full SHA for e5e9bf4
lua/lazy/core/meta.lua
@@ -306,7 +306,7 @@ function M:fix_disabled()
306
local changes = 0
307
local function check(top)
308
for _, plugin in pairs(self.plugins) do
309
- if plugin._.top == top then
+ if (plugin._.top or false) == top then
310
if plugin.enabled == false or (type(plugin.enabled) == "function" and not plugin.enabled()) then
311
changes = changes + 1
312
if plugin.optional then
tests/core/plugin_spec.lua
@@ -25,6 +25,7 @@ local function clean(plugins)
25
if plugin._.dep == false then
26
plugin._.dep = nil
27
end
28
+ plugin._.top = nil
29
return plugin
30
end, plugins)
31
0 commit comments