1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-04 22:51:42 +02:00

fixlet to avoid an empty string in an array; cause completion after cd without any matches to not report that there were no matches (16515)

This commit is contained in:
Sven Wischnowsky 2002-01-30 08:47:52 +00:00
parent c3e0113d1c
commit 908065190d
2 changed files with 8 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2002-01-30 Sven Wischnowsky <wischnow@zsh.org>
* 16515: Completion/Zsh/Command/_cd: fixlet to avoid an empty
string in an array; cause completion after cd without any
matches to not report that there were no matches
2002-01-29 Clint Adams <clint@zsh.org>
* 16514: Completion/Unix/Command/_init_d: do not attempt

View file

@ -34,6 +34,8 @@ else
if [[ $PREFIX != (\~|/|./|../)* ]]; then
local tmpcdpath alt
alt=()
tmpcdpath=(${${(@)cdpath:#.}:#$PWD})
(( $#tmpcdpath )) &&