From a9e7fd4e757924dd11279fba5c7808aac6c1df59 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Sun, 8 Aug 2010 17:20:54 +0000 Subject: 28137: zsh-mime-handler typo: $argv[0] should be $argv[1] --- Functions/MIME/zsh-mime-handler | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Functions/MIME/zsh-mime-handler') 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]}) -- cgit 1.4.1