summary refs log tree commit diff
path: root/Functions
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2010-11-25 15:43:14 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2010-11-25 15:43:14 +0000
commit2b361ad11671444831fef3b04bd610c26c2e19e9 (patch)
treeb10e67651fa3deebb5b24e175e351e5289676df1 /Functions
parentfc6c76519b863f38ab650e0e82fce574c5dc98e1 (diff)
downloadzsh-2b361ad11671444831fef3b04bd610c26c2e19e9.tar.gz
zsh-2b361ad11671444831fef3b04bd610c26c2e19e9.tar.xz
zsh-2b361ad11671444831fef3b04bd610c26c2e19e9.zip
users/15580: fix MIME handler completion on fallthrough
Diffstat (limited to 'Functions')
-rw-r--r--Functions/MIME/zsh-mime-handler6
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