Skip to content

Commit

Permalink
fix: check for installed plugins with plain find
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Dec 20, 2022
1 parent 833b387 commit a189883
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/lazy/core/plugin.lua
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ function M.update_state()
or plugin.init
plugin.lazy = lazy and true or false
end
if plugin.dir:find(Config.options.root) == 1 then
if plugin.dir:find(Config.options.root, 1, true) == 1 then
plugin._.installed = installed[plugin.name] ~= nil
installed[plugin.name] = nil
else
Expand Down

0 comments on commit a189883

Please sign in to comment.