mirror of
https://github.com/skywind3000/z.lua
synced 2026-10-29 03:54:27 +00:00
update z.lua
This commit is contained in:
1 parent
21f4f0ba8b
commit
421f315738
1 file changed
+2
-2
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user