diff options
| author | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2002-01-30 08:47:52 +0000 |
|---|---|---|
| committer | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2002-01-30 08:47:52 +0000 |
| commit | 908065190d40d76c67e2f24cc368249cfe0cd901 (patch) | |
| tree | 1af016ad003c9891802c04cb9872686e9bd31dee /Completion/Zsh/Command/_cd | |
| parent | 16514: initscript completion fixes (diff) | |
| download | zsh-908065190d40d76c67e2f24cc368249cfe0cd901.tar zsh-908065190d40d76c67e2f24cc368249cfe0cd901.tar.gz zsh-908065190d40d76c67e2f24cc368249cfe0cd901.tar.bz2 zsh-908065190d40d76c67e2f24cc368249cfe0cd901.tar.lz zsh-908065190d40d76c67e2f24cc368249cfe0cd901.tar.xz zsh-908065190d40d76c67e2f24cc368249cfe0cd901.tar.zst zsh-908065190d40d76c67e2f24cc368249cfe0cd901.zip | |
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)
Diffstat (limited to 'Completion/Zsh/Command/_cd')
| -rw-r--r-- | Completion/Zsh/Command/_cd | 2 |
1 files changed, 2 insertions, 0 deletions
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 )) && |
