Fix absolute path detection in core.project_absolute_path
This commit is contained in:
+1
-1
@@ -809,7 +809,7 @@ end
|
|||||||
-- This function should get only filenames normalized using
|
-- This function should get only filenames normalized using
|
||||||
-- common.normalize_path function.
|
-- common.normalize_path function.
|
||||||
function core.project_absolute_path(filename)
|
function core.project_absolute_path(filename)
|
||||||
if filename:match('^%a:\\') or filename:find('/', 1, true) then
|
if filename:match('^%a:\\') or filename:find('/', 1, true) == 1 then
|
||||||
return filename
|
return filename
|
||||||
else
|
else
|
||||||
return core.project_dir .. PATHSEP .. filename
|
return core.project_dir .. PATHSEP .. filename
|
||||||
|
|||||||
Reference in New Issue
Block a user