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:
parent
9e3017721e
commit
d4f7d8d32c
@ -13,14 +13,15 @@ if [[ "$SUFFIX" = */* ]]; then
|
|||||||
ISUFFIX="/${SUFFIX#*/}$ISUFFIX"
|
ISUFFIX="/${SUFFIX#*/}$ISUFFIX"
|
||||||
SUFFIX="${SUFFIX%%/*}"
|
SUFFIX="${SUFFIX%%/*}"
|
||||||
suf=(-S '')
|
suf=(-S '')
|
||||||
else
|
elif [[ $PREFIX != [-+]* ]]; then
|
||||||
suf=(-qS/)
|
suf=(-qS/)
|
||||||
|
else
|
||||||
|
suf=()
|
||||||
fi
|
fi
|
||||||
|
|
||||||
### we decided against this, for now...
|
### we decided against this, for now...
|
||||||
#! zstyle -T ":completion:${curcontext}:directory-stack" prefix-needed ||
|
#! zstyle -T ":completion:${curcontext}:directory-stack" prefix-needed ||
|
||||||
|
# [[ $PREFIX = [-+]* ]] || return 1
|
||||||
[[ $PREFIX = [-+]* ]] || return 1
|
|
||||||
|
|
||||||
if zstyle -T ":completion:${curcontext}:directory-stack" verbose; then
|
if zstyle -T ":completion:${curcontext}:directory-stack" verbose; then
|
||||||
# get the list of directories with their canonical number
|
# get the list of directories with their canonical number
|
||||||
|
Loading…
Reference in New Issue
Block a user