We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c524e28 commit 19b2d17Copy full SHA for 19b2d17
z.lua
@@ -1979,7 +1979,7 @@ function main(argv)
1979
path = z_cd(args)
1980
if path == nil and Z_MATCHMODE ~= 0 then
1981
local last = args[#args]
1982
- if os.path.isdir(last) then
+ if last and os.path.isdir(last) then
1983
path = os.path.abspath(last)
1984
path = os.path.norm(path)
1985
end
0 commit comments