1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-02-25 00:01:30 +01:00

avoid appending a / when called from _cd (13958)

This commit is contained in:
Oliver Kiddle 2001-04-12 11:42:01 +00:00
parent f48fd1dd86
commit 621155b3ec
2 changed files with 9 additions and 3 deletions
ChangeLog
Completion/Zsh/Type

View file

@ -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:

View file

@ -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