mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-08-23 06:51:06 +02:00
38515: _subsript twwaks
Need -- after print; also optimise array add
This commit is contained in:
parent
7700170d6d
commit
770500d69d
2 changed files with 5 additions and 3 deletions
|
@ -1,5 +1,8 @@
|
||||||
2016-05-22 Peter Stephenson <p.w.stephenson@ntlworld.com>
|
2016-05-22 Peter Stephenson <p.w.stephenson@ntlworld.com>
|
||||||
|
|
||||||
|
* 38515: Matthew Martin: Completion/Zsh/Context/_subscript:
|
||||||
|
missing -- after print and optimised array add.
|
||||||
|
|
||||||
* 38514: Matthew Martin: Completion/Linux/Command/_vserver:
|
* 38514: Matthew Martin: Completion/Linux/Command/_vserver:
|
||||||
remove unnecessary ls.
|
remove unnecessary ls.
|
||||||
|
|
||||||
|
|
|
@ -99,10 +99,9 @@ elif [[ ${(Pt)${compstate[parameter]}} = array* ]]; then
|
||||||
list=()
|
list=()
|
||||||
for i in "$ind[@]"; do
|
for i in "$ind[@]"; do
|
||||||
if [[ "$i" = ${PREFIX}*${SUFFIX} ]]; then
|
if [[ "$i" = ${PREFIX}*${SUFFIX} ]]; then
|
||||||
list=( "$list[@]"
|
list+=( "${i}:$(print -D -- ${(P)${compstate[parameter]}[$i]})" )
|
||||||
"${i}:$(print -D ${(P)${compstate[parameter]}[$i]})" )
|
|
||||||
else
|
else
|
||||||
list=( "$list[@]" '' )
|
list+=( '' )
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
zstyle -s ":completion:${curcontext}:indexes" list-separator sep || sep=--
|
zstyle -s ":completion:${curcontext}:indexes" list-separator sep || sep=--
|
||||||
|
|
Loading…
Reference in a new issue