From 504d5906cf721f5e3d471559568654011d910d8e Mon Sep 17 00:00:00 2001 From: skywind3000 Date: Tue, 15 Jan 2019 16:02:31 +0800 Subject: [PATCH] update --- z.lua | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/z.lua b/z.lua index 080d02f..b59040e 100644 --- a/z.lua +++ b/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