summary refs log tree commit diff
path: root/Completion/Zsh
diff options
context:
space:
mode:
authorBart Schaefer <barts@users.sourceforge.net>2001-08-22 15:37:19 +0000
committerBart Schaefer <barts@users.sourceforge.net>2001-08-22 15:37:19 +0000
commit4fe788b09293eac27472a33d3b5e784583c13bde (patch)
tree21340177d61d025a4b429686e20139defeb8be68 /Completion/Zsh
parent80988d80275208d8843c9fefa8b49f8baf0b1ab4 (diff)
downloadzsh-4fe788b09293eac27472a33d3b5e784583c13bde.tar.gz
zsh-4fe788b09293eac27472a33d3b5e784583c13bde.tar.xz
zsh-4fe788b09293eac27472a33d3b5e784583c13bde.zip
Don't treat numbers as cd-able vars.
Diffstat (limited to 'Completion/Zsh')
-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