about summary refs log tree commit diff
path: root/Completion/Unix
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/Unix
parentaea461e542ba99182b7ab36f79b230d185258ec7 (diff)
downloadzsh-b2de9b518e54c73b2832ad8e24d536f5c05be985.tar.gz
zsh-b2de9b518e54c73b2832ad8e24d536f5c05be985.tar.xz
zsh-b2de9b518e54c73b2832ad8e24d536f5c05be985.zip
35527: use list-separator style in cases where separator was hardcoded
Diffstat (limited to 'Completion/Unix')
-rw-r--r--Completion/Unix/Type/_email_addresses5
1 files changed, 3 insertions, 2 deletions
diff --git a/Completion/Unix/Type/_email_addresses b/Completion/Unix/Type/_email_addresses
index 926e8b4e3..7d5c942de 100644
--- a/Completion/Unix/Type/_email_addresses
+++ b/Completion/Unix/Type/_email_addresses
@@ -88,7 +88,7 @@ _email-local() {
 _email_addresses() {
   local -a plugins reply list args
   local -A opts files
-  local plugin rcfile muttrc expl ret fret
+  local plugin rcfile muttrc expl sep ret fret
 
   local __specialx='][()<>@,;:\\".'
   local __spacex=" 	"				# Space, tab
@@ -159,7 +159,8 @@ _email_addresses() {
 
 	  if (( fret == 300 )); then
 	    if (( ! $+opts[-c] )) && [[ $opts[-n] = $plugin ]]; then
-	      zformat -a list ' -- ' "${reply[@]}"
+	      zstyle -s ":completion:${curcontext}:$curtag" list-separator sep || sep=--
+	      zformat -a list " $sep " "${reply[@]}"
 	      _wanted mail-aliases expl 'alias' compadd "$@" \
 		  -d list - ${reply%%:*} && ret=0
 	    else