summary refs log tree commit diff
path: root/Functions/MIME
diff options
context:
space:
mode:
Diffstat (limited to 'Functions/MIME')
-rw-r--r--Functions/MIME/zsh-mime-handler4
1 files changed, 2 insertions, 2 deletions
diff --git a/Functions/MIME/zsh-mime-handler b/Functions/MIME/zsh-mime-handler
index 9dd9cca4d..8d15b4688 100644
--- a/Functions/MIME/zsh-mime-handler
+++ b/Functions/MIME/zsh-mime-handler
@@ -188,9 +188,9 @@ if [[ $handler = *%s* ]]; then
       # Probably we ought not even to handle multiple
       # arguments, but at least the error message ought
       # to make it obvious what's going on.
-      zformat -f command $handler s:"$argv[0]"
+      zformat -f command $handler s:"$argv[1]"
     else
-      zformat -f command $handler s:"${(q)argv[0]}"
+      zformat -f command $handler s:"${(q)argv[1]}"
     fi
     if (( list )); then
       execargs=(${(Q)${(z)command}} ${argv[1,-1]})