mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-02-25 00:01:30 +01:00
Don't append a / when completing after [-+]*.
This commit is contained in:
parent
9e3017721e
commit
d4f7d8d32c
1 changed files with 4 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue