From 908065190d40d76c67e2f24cc368249cfe0cd901 Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Wed, 30 Jan 2002 08:47:52 +0000 Subject: 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) --- Completion/Zsh/Command/_cd | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Completion/Zsh') diff --git a/Completion/Zsh/Command/_cd b/Completion/Zsh/Command/_cd index 384fe2d66..306855bc8 100644 --- a/Completion/Zsh/Command/_cd +++ b/Completion/Zsh/Command/_cd @@ -34,6 +34,8 @@ else if [[ $PREFIX != (\~|/|./|../)* ]]; then local tmpcdpath alt + alt=() + tmpcdpath=(${${(@)cdpath:#.}:#$PWD}) (( $#tmpcdpath )) && -- cgit 1.4.1