Merge branch 'master' into Merged

This commit is contained in:
Adam
2021-08-01 14:58:36 -04:00
committed by GitHub
9 changed files with 767 additions and 7 deletions
+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