1
0
mirror of https://github.com/skywind3000/z.lua synced 2026-03-14 03:39:49 +00:00

update z.lua

This commit is contained in:
skywind3000
2018-03-21 20:12:59 +08:00
parent 21f4f0ba8b
commit 421f315738

4
z.lua
View File

@@ -815,7 +815,7 @@ function z_cd(patterns)
return os.path.expand('~')
end
if os.path.isabs(last) and os.path.isdir(last) then
return last
return os.path.norm(last)
end
local M = z_match(patterns, Z_METHOD, Z_SUBDIR)
if M == nil then
@@ -931,7 +931,7 @@ end
if not pcall(debug.getlocal, 4, 1) then
-- main script
z_init()
if clink ~= nil and type(clink) == 'table' and clink.prompt ~= nil then
if windows and type(clink) == 'table' and clink.prompt ~= nil then
z_clink_init()
else
main()