about summary refs log tree commit diff
path: root/Completion/Core/_message
diff options
context:
space:
mode:
Diffstat (limited to 'Completion/Core/_message')
-rw-r--r--Completion/Core/_message5
1 files changed, 3 insertions, 2 deletions
diff --git a/Completion/Core/_message b/Completion/Core/_message
index b2730a331..6b2666253 100644
--- a/Completion/Core/_message
+++ b/Completion/Core/_message
@@ -7,11 +7,12 @@ _tags messages || return 1
 _style -s messages format format || _style -s descriptions format format
 
 if [[ -n "$format" ]]; then
+  compfmt format "$format" "d:$1" "${(@)argv[2,-1]}"
   if [[ $compstate[nmatches] -eq 0 ]]; then
     compstate[list]='list force'
     compstate[insert]=''
-    compadd -UX "${format//\\%d/$1}" -n ''
+    compadd -UX "${format}" -n ''
   else
-    compadd -X "${format//\\%d/$1}" -n '' && compstate[list]='list force'
+    compadd -X "${format}" -n '' && compstate[list]='list force'
   fi
 fi