summaryrefslogtreecommitdiffstats
path: root/Completion/Zsh/Command/_zpty
diff options
context:
space:
mode:
authorOliver Kiddle <opk@zsh.org>2015-06-19 19:54:44 +0200
committerOliver Kiddle <opk@zsh.org>2015-06-19 19:54:44 +0200
commitb2de9b518e54c73b2832ad8e24d536f5c05be985 (patch)
treeef35a6e27bdde5ad7db169a4f1115ade78ecc2c7 /Completion/Zsh/Command/_zpty
parent35528: allow for IPREFIX (diff)
downloadzsh-b2de9b518e54c73b2832ad8e24d536f5c05be985.tar
zsh-b2de9b518e54c73b2832ad8e24d536f5c05be985.tar.gz
zsh-b2de9b518e54c73b2832ad8e24d536f5c05be985.tar.bz2
zsh-b2de9b518e54c73b2832ad8e24d536f5c05be985.tar.lz
zsh-b2de9b518e54c73b2832ad8e24d536f5c05be985.tar.xz
zsh-b2de9b518e54c73b2832ad8e24d536f5c05be985.tar.zst
zsh-b2de9b518e54c73b2832ad8e24d536f5c05be985.zip
35527: use list-separator style in cases where separator was hardcoded
Diffstat (limited to 'Completion/Zsh/Command/_zpty')
-rw-r--r--Completion/Zsh/Command/_zpty7
1 files changed, 4 insertions, 3 deletions
diff --git a/Completion/Zsh/Command/_zpty b/Completion/Zsh/Command/_zpty
index ef4ac4bb1..99251aa0a 100644
--- a/Completion/Zsh/Command/_zpty
+++ b/Completion/Zsh/Command/_zpty
@@ -1,6 +1,6 @@
#compdef zpty
-local state line list names expl curcontext="$curcontext"
+local state line list names expl sep curcontext="$curcontext"
typeset -A opt_args
_arguments -C -s -S \
@@ -50,8 +50,9 @@ if [[ $state = name ]]; then
fi
list=( ${${(f)"$(zpty)"}#*\) } )
names=( ${list%%:*} )
- if zstyle -T ":completion:${curcontext}" verbose; then
- zformat -a list ' --' ${${(f)"$(zpty)"}#*\) }
+ if zstyle -T ":completion:${curcontext}:" verbose; then
+ zstyle -s ":completion:${curcontext}:" list-separator sep || sep=--
+ zformat -a list " $sep" ${${(f)"$(zpty)"}#*\) }
_wanted names expl 'zpty command name' compadd -d list -a names
else
_wanted names expl 'zpty command name' compadd -a names