diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2010-11-25 15:43:14 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2010-11-25 15:43:14 +0000 |
commit | 2b361ad11671444831fef3b04bd610c26c2e19e9 (patch) | |
tree | b10e67651fa3deebb5b24e175e351e5289676df1 /Functions/MIME/zsh-mime-handler | |
parent | fc6c76519b863f38ab650e0e82fce574c5dc98e1 (diff) | |
download | zsh-2b361ad11671444831fef3b04bd610c26c2e19e9.tar.gz zsh-2b361ad11671444831fef3b04bd610c26c2e19e9.tar.xz zsh-2b361ad11671444831fef3b04bd610c26c2e19e9.zip |
users/15580: fix MIME handler completion on fallthrough
Diffstat (limited to 'Functions/MIME/zsh-mime-handler')
-rw-r--r-- | Functions/MIME/zsh-mime-handler | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Functions/MIME/zsh-mime-handler b/Functions/MIME/zsh-mime-handler index 8d15b4688..9a40e67bb 100644 --- a/Functions/MIME/zsh-mime-handler +++ b/Functions/MIME/zsh-mime-handler @@ -144,7 +144,11 @@ if [[ ! -e $1 ]]; then fi done if [[ -z $nonex_ok ]]; then - "$@" + if (( list )); then + print -r -- "${(q)@}" + else + "$@" + fi return fi fi |