about summary refs log tree commit diff
diff options
context:
space:
mode:
authorOliver Freyermuth <o.freyermuth@xxxxxxxxxxxxxx>2018-09-25 23:08:33 +0200
committerDaniel Shahaf <d.s@daniel.shahaf.name>2018-09-25 22:52:57 +0000
commitcbcf6d18648fad927fc0b193afb94e59f0bb6c21 (patch)
tree0ed603219749ae1c3a85ddfec0f9180f2685a0a2
parente4ca9d8ae3275f07f33a139298f270cba97fd7f9 (diff)
downloadzsh-cbcf6d18648fad927fc0b193afb94e59f0bb6c21.tar.gz
zsh-cbcf6d18648fad927fc0b193afb94e59f0bb6c21.tar.xz
zsh-cbcf6d18648fad927fc0b193afb94e59f0bb6c21.zip
43554 (tweaked): Fix zathura completion ignoring multiple plugin directories.
-rw-r--r--ChangeLog5
-rw-r--r--Completion/X/Command/_zathura5
2 files changed, 7 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 36de34da3..2f37a0359 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2018-09-25  Oliver Freyermuth  <o.freyermuth@xxxxxxxxxxxxxx>
+
+	* 43554 (tweaked): Completion/X/Command/_zathura: Fix zathura
+	completion ignoring multiple plugin directories.
+
 2018-09-25  Oliver Freyermuth  <o.freyermuth@googlemail.com>
 
 	* 43544: Completion/X/Command/_zathura: Fix zathura filename
diff --git a/Completion/X/Command/_zathura b/Completion/X/Command/_zathura
index 64888d013..615488068 100644
--- a/Completion/X/Command/_zathura
+++ b/Completion/X/Command/_zathura
@@ -8,8 +8,7 @@ _zathura_files(){
     ${(Qv)opt_args[(i)-p|--plugins-dir]}(#qN) \
     {/usr/local,/usr,}/lib/zathura(#qN)
   do
-    plugins_files=( $plugins_dir/*.so )
-    (( $#plugins_files )) && break
+    plugins_files+=( $plugins_dir/*.so(N) )
   done
   if [[ -z "${plugins_files}" ]]; then
     _files -g "*.pdf(-.)"
@@ -28,7 +27,7 @@ _zathura_files(){
       supported_filetypes+="${pf:t:r}"
     fi
   done
-  _files -g "*.(${(j.|.)supported_filetypes})(-.)"
+  _files -g "*.(${(j.|.)${(@u)supported_filetypes}})(-.)"
 }
 
 _arguments -s -S \