1
0
mirror of https://github.com/skywind3000/z.lua synced 2026-03-18 13:49:50 +00:00
This commit is contained in:
skywind3000
2019-01-15 17:04:15 +08:00
parent 7ffebab4fa
commit 2037c3d03a

2
z.lua
View File

@@ -1116,7 +1116,7 @@ function main(argv)
path = os.path.expand('~')
else
path = z_cd(args)
if path == nil and #args == 1 then
if path == nil and Z_MATCHMODE ~= 0 then
local last = args[#args]
if os.path.isdir(last) then
path = os.path.abspath(last)