From 24c832213c505a0d7ca021c0e14bba43e0fef75c Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Tue, 25 Jun 2024 15:51:40 +0200 Subject: [PATCH] fix(meta): no need to check for old_dir when frags were not built yet. Fixes #1550 --- lua/lazy/core/meta.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/lazy/core/meta.lua b/lua/lazy/core/meta.lua index 4645f1b..ec3a5b4 100644 --- a/lua/lazy/core/meta.lua +++ b/lua/lazy/core/meta.lua @@ -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