From 609445a05184209eac3d22b5898319cfdaff81db Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Mon, 13 Feb 2023 10:35:15 +0100 Subject: [PATCH] fix(cache): cache file names on Windows --- lua/lazy/core/cache.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/lazy/core/cache.lua b/lua/lazy/core/cache.lua index 92f8630..89d5a4a 100644 --- a/lua/lazy/core/cache.lua +++ b/lua/lazy/core/cache.lua @@ -63,7 +63,7 @@ end ---@param name string can be a module name, or a file name ---@private function Cache.cache_file(name) - return M.path .. "/" .. name:gsub("[/\\]", "%%") .. ".luac" + return M.path .. "/" .. name:gsub("[/\\:]", "%%") .. "c" end ---@param entry CacheEntry