Improved command line file check for relative files on Windows.

Loading `file:10` was interpreted as network share for non-existing files.
This commit is contained in:
Paul Kulchenko
2014-12-03 21:22:42 -08:00
parent bcc0d50562
commit 2ee9599863

View File

@@ -201,7 +201,7 @@ end
function ActivateFile(filename)
local name, suffix, value = filename:match('(.+):([lLpP]?)(%d+)$')
if name and not wx.wxFileExists(filename) and wx.wxFileExists(name) then
if name and not wx.wxFileExists(filename) and not wx.wxIsAbsolutePath(filename) then
filename = name
end