mirror of
https://github.com/skywind3000/z.lua
synced 2026-03-24 16:49:47 +00:00
update
This commit is contained in:
12
z.lua
12
z.lua
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user