This commit is contained in:
skywind3000
2019-01-15 16:02:31 +08:00
parent 471758a33b
commit 504d5906cf
+6 -6
View File
@@ -1116,12 +1116,12 @@ function main(argv)
path = os.path.expand('~')
else
path = z_cd(args)
end
if path == nil and Z_MATCHMODE ~= 0 then
local last = args[#args]
if os.path.isdir(last) then
path = os.path.abspath(last)
path = os.path.norm(path)
if path == nil and Z_MATCHMODE ~= 0 then
local last = args[#args]
if os.path.isdir(last) then
path = os.path.abspath(last)
path = os.path.norm(path)
end
end
end
if path ~= nil then