allow / for path suggestions in all OSes

This commit is contained in:
ThaCuber
2024-12-03 08:35:40 +08:00
committed by takase1121
parent 142c19bc51
commit 9222136070
+1 -1
View File
@@ -226,7 +226,7 @@ function common.path_suggest(text, root)
if root and root:sub(-1) ~= PATHSEP then if root and root:sub(-1) ~= PATHSEP then
root = root .. PATHSEP root = root .. PATHSEP
end end
local path, name = text:match("^(.-)([^"..PATHSEP.."]*)$") local path, name = text:match("^(.-)([^"..PATHSEP.."/]*)$")
local clean_dotslash = false local clean_dotslash = false
-- ignore root if path is absolute -- ignore root if path is absolute
local is_absolute = common.is_absolute_path(text) local is_absolute = common.is_absolute_path(text)