From 621155b3ec40ba739e9280e58f07c54d5de23290 Mon Sep 17 00:00:00 2001 From: Oliver Kiddle Date: Thu, 12 Apr 2001 11:42:01 +0000 Subject: avoid appending a / when called from _cd (13958) --- Completion/Zsh/Type/_directory_stack | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'Completion/Zsh/Type') 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 -- cgit 1.4.1