summary refs log tree commit diff
path: root/Completion/Unix/Command
diff options
context:
space:
mode:
authorMikael Magnusson <mikachu@gmail.com>2014-04-15 21:34:14 +0200
committerMikael Magnusson <mikachu@gmail.com>2015-08-12 17:54:42 +0200
commit64725416785a098139cdaca05b552379137a1360 (patch)
tree981105df8c5b13e0929ce29489e840238fd55b32 /Completion/Unix/Command
parentf6c3a2f86a0336ef40d69e6888b70b5b8b2ecfdf (diff)
downloadzsh-64725416785a098139cdaca05b552379137a1360.tar.gz
zsh-64725416785a098139cdaca05b552379137a1360.tar.xz
zsh-64725416785a098139cdaca05b552379137a1360.zip
36118: _imagemagick: complete all files if image files didn't match
Diffstat (limited to 'Completion/Unix/Command')
-rw-r--r--Completion/Unix/Command/_imagemagick2
1 files changed, 1 insertions, 1 deletions
diff --git a/Completion/Unix/Command/_imagemagick b/Completion/Unix/Command/_imagemagick
index 115cb01e4..c43086c45 100644
--- a/Completion/Unix/Command/_imagemagick
+++ b/Completion/Unix/Command/_imagemagick
@@ -14,7 +14,7 @@ typeset -A opt_args
 formats=jpg:jpeg:jp2:j2k:jpc:jpx:jpf:tiff:miff:ras:bmp:cgm:dcx:ps:eps:fig:fits:fpx:gif:mpeg:pbm:pgm:ppm:pcd:pcl:pdf:pcx:png:rad:rgb:rgba:rle:sgi:html:shtml:tga:ttf:uil:xcf:xwd:xbm:xpm:yuv
 
 if (( $# )); then
-  _files "$@" -g "*.(#i)(${~formats//:/|})(-.)"
+  _files "$@" -g "*.(#i)(${~formats//:/|})(-.)" || _files "$@"
   return
 fi