about summary refs log tree commit diff
path: root/Completion
diff options
context:
space:
mode:
Diffstat (limited to 'Completion')
-rw-r--r--Completion/Zsh/Command/_cd2
1 files changed, 1 insertions, 1 deletions
diff --git a/Completion/Zsh/Command/_cd b/Completion/Zsh/Command/_cd
index fe347ae4c..3a536cb7b 100644
--- a/Completion/Zsh/Command/_cd
+++ b/Completion/Zsh/Command/_cd
@@ -36,7 +36,7 @@ else
     tmpcdpath=(${${(@)cdpath:#.}:#$PWD})
 
     # With cdablevars, we can complete foo as if ~foo/
-    if [[ -o cdablevars && -n "$PREFIX" ]]; then
+    if [[ -o cdablevars && -n "$PREFIX" && "$PREFIX" != <-> ]]; then
       if [[ "$PREFIX" != */* ]]; then
         _tilde && ret=0
       else