1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-11-19 21:44:11 +01:00

Don't append a / when completing after [-+]*.

This commit is contained in:
Bart Schaefer 2001-04-11 22:26:11 +00:00
parent 9e3017721e
commit d4f7d8d32c

@ -13,14 +13,15 @@ if [[ "$SUFFIX" = */* ]]; then
ISUFFIX="/${SUFFIX#*/}$ISUFFIX"
SUFFIX="${SUFFIX%%/*}"
suf=(-S '')
else
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