From 421f315738030326f7058db6f2608a6363928eff Mon Sep 17 00:00:00 2001 From: skywind3000 Date: Wed, 21 Mar 2018 20:12:59 +0800 Subject: [PATCH] update z.lua --- z.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/z.lua b/z.lua index 5630df5..8f744bb 100644 --- a/z.lua +++ b/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()