aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configs/nvim/lua/crupest/system/fs.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/configs/nvim/lua/crupest/system/fs.lua b/configs/nvim/lua/crupest/system/fs.lua
index 2f489c3..d34c2f6 100644
--- a/configs/nvim/lua/crupest/system/fs.lua
+++ b/configs/nvim/lua/crupest/system/fs.lua
@@ -1,4 +1,5 @@
local function clean_path(path)
+ if path == "/" then return path end
path = string.gsub(path, "[/\\]+", "/")
if string.sub(path, string.len(path)) == '/' then
path = string.sub(path, 1, string.len(path) - 1)