1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-01-22 12:31:26 +01:00

43554 (tweaked): Fix zathura completion ignoring multiple plugin directories.

This commit is contained in:
Oliver Freyermuth 2018-09-25 23:08:33 +02:00 committed by Daniel Shahaf
parent e4ca9d8ae3
commit cbcf6d1864
2 changed files with 7 additions and 3 deletions

View file

@ -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

View file

@ -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 \