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:
4
z.lua
4
z.lua
@@ -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