1
0
mirror of https://github.com/skywind3000/z.lua synced 2026-03-24 16:49:47 +00:00
This commit is contained in:
skywind3000
2019-01-15 16:02:31 +08:00
parent 471758a33b
commit 504d5906cf

12
z.lua
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