Skip to content

Commit

Permalink
fix(meta): no need to check for old_dir when frags were not built yet.
Browse files Browse the repository at this point in the history
…Fixes #1550
  • Loading branch information
folke committed Jun 25, 2024
1 parent 4ca3e9a commit 24c8322
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/lazy/core/meta.lua
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ function M:add(plugin)

table.insert(meta._.frags, fragment.id)

if meta._ and meta._.rtp_loaded then
if meta._ and meta._.rtp_loaded and meta.dir then
local old_dir = meta.dir
self:_rebuild(meta.name)
local new_dir = meta.dir
Expand Down

0 comments on commit 24c8322

Please sign in to comment.