about summary refs log tree commit diff
diff options
context:
space:
mode:
authorOliver Kiddle <opk@users.sourceforge.net>2001-04-12 11:42:01 +0000
committerOliver Kiddle <opk@users.sourceforge.net>2001-04-12 11:42:01 +0000
commit621155b3ec40ba739e9280e58f07c54d5de23290 (patch)
tree036b0e5ae3b4fc715e0e84d4ce8e33e895e66899
parentf48fd1dd86ea6bddfb30bb5089694f26b0a2fb7f (diff)
downloadzsh-621155b3ec40ba739e9280e58f07c54d5de23290.tar.gz
zsh-621155b3ec40ba739e9280e58f07c54d5de23290.tar.xz
zsh-621155b3ec40ba739e9280e58f07c54d5de23290.zip
avoid appending a / when called from _cd (13958)
-rw-r--r--ChangeLog7
-rw-r--r--Completion/Zsh/Type/_directory_stack5
2 files changed, 9 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 087128845..3018c2efa 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2001-04-12  Oliver Kiddle  <opk@zsh.org>
+
+	* 13958: Completion/Zsh/Type/_directory_stack: a hopefully correct
+	fix to avoid appending a / when called from _cd
+
+	* unposted: Completion/Zsh/Command/.distfiles: missed change for 13947
+
 2001-04-12  Clint Adams  <schizo@debian.org>
 
 	* 13955: acconfig.h, configure.in, Src/Modules/terminfo.c:
diff --git a/Completion/Zsh/Type/_directory_stack b/Completion/Zsh/Type/_directory_stack
index 3e615dee4..c8e3cad26 100644
--- a/Completion/Zsh/Type/_directory_stack
+++ b/Completion/Zsh/Type/_directory_stack
@@ -13,15 +13,14 @@ if [[ "$SUFFIX" = */* ]]; then
   ISUFFIX="/${SUFFIX#*/}$ISUFFIX"
   SUFFIX="${SUFFIX%%/*}"
   suf=(-S '')
-elif [[ $PREFIX != [-+]* ]]; then
-  suf=(-qS/)
 else
   suf=()
 fi
 
 ### we decided against this, for now...
 #! zstyle -T ":completion:${curcontext}:directory-stack" prefix-needed ||
-#	[[ $PREFIX = [-+]* ]] || return 1
+
+[[ $PREFIX = [-+]* ]] || return 1
 
 if zstyle -T ":completion:${curcontext}:directory-stack" verbose; then
   # get the list of directories with their canonical number