From d55461ffdb01d2966298b0ddabbc3c312c74d80f Mon Sep 17 00:00:00 2001 From: mrcapivaro Date: Tue, 18 Jun 2024 00:03:51 -0300 Subject: [PATCH] fix: infinite loop on the find_cached_dir function on the Windows OS --- lua/live-server.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/live-server.lua b/lua/live-server.lua index 1de2bc6..8122384 100644 --- a/lua/live-server.lua +++ b/lua/live-server.lua @@ -13,7 +13,7 @@ local function find_cached_dir(dir) local cur = dir while not job_cache[cur] do - if cur == '/' then + if cur == '/' or string.match(cur, '^[A-Z]:\\$') then return end