Skip to content

Commit 27dceb9

Browse files
authored
Merge pull request #219 from chrisant996/allow_interactive_with_no_args
Fix when _ZL_MATCH_MODE=1.
2 parents 7c1c73a + 19b2d17 commit 27dceb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

z.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1979,7 +1979,7 @@ function main(argv)
19791979
path = z_cd(args)
19801980
if path == nil and Z_MATCHMODE ~= 0 then
19811981
local last = args[#args]
1982-
if os.path.isdir(last) then
1982+
if last and os.path.isdir(last) then
19831983
path = os.path.abspath(last)
19841984
path = os.path.norm(path)
19851985
end

0 commit comments

Comments
 (0)