mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-25 17:20:25 +02:00
28137: zsh-mime-handler typo: $argv[0] should be $argv[1]
This commit is contained in:
parent
04f055d766
commit
a9e7fd4e75
2 changed files with 8 additions and 3 deletions
|
|
@ -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]})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue