Merge branch 'master' into Merged

This commit is contained in:
Adam authored and GitHub committed 2021-08-01 14:58:36 -04:00
commit 47eaca18d8
9 files changed
+767 -7

No files matched your search

+6
View File
@@ -300,6 +300,12 @@ end
function common.relative_path(ref_dir, dir)
local drive_pattern = "^(%a):\\"
local drive, ref_drive = dir:match(drive_pattern), ref_dir:match(drive_pattern)
if drive and ref_drive and drive ~= ref_drive then
-- Windows, different drives, system.absolute_path fails for C:\..\D:\
return dir
end
local ref_ls = split_on_slash(ref_dir)
local dir_ls = split_on_slash(dir)
local i = 1