summary refs log tree commit diff
diff options
context:
space:
mode:
authorOliver Freyermuth <o.freyermuth@googlemail.com>2018-09-25 20:32:56 +0000
committerDaniel Shahaf <d.s@daniel.shahaf.name>2018-09-25 20:33:04 +0000
commite4ca9d8ae3275f07f33a139298f270cba97fd7f9 (patch)
tree8b1dff60d4a02ef817ebb5bc8b536beb9b709ac0
parentdb67cc2f4b5b1282cb2be719ebb6bfd5a52f9169 (diff)
downloadzsh-e4ca9d8ae3275f07f33a139298f270cba97fd7f9.tar.gz
zsh-e4ca9d8ae3275f07f33a139298f270cba97fd7f9.tar.xz
zsh-e4ca9d8ae3275f07f33a139298f270cba97fd7f9.zip
43544: Fix zathura filename completion derived from *.so plugin name.
-rw-r--r--ChangeLog5
-rw-r--r--Completion/X/Command/_zathura2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index b5c41edb5..36de34da3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2018-09-25  Oliver Freyermuth  <o.freyermuth@googlemail.com>
+
+	* 43544: Completion/X/Command/_zathura: Fix zathura filename
+	completion derived from *.so plugin name.
+
 2018-09-25  Daniel Shahaf  <d.s@daniel.shahaf.name>
 
 	* 43489: Src/exec.c: Add error checking on a new write() call.
diff --git a/Completion/X/Command/_zathura b/Completion/X/Command/_zathura
index 141cadf63..64888d013 100644
--- a/Completion/X/Command/_zathura
+++ b/Completion/X/Command/_zathura
@@ -25,7 +25,7 @@ _zathura_files(){
     elif [[ $pf =~ "poppler" ]]; then
       supported_filetypes+="pdf"
     else
-      supported_filetypes+="${${pf%.so}#${plugins_dir}/lib}"
+      supported_filetypes+="${pf:t:r}"
     fi
   done
   _files -g "*.(${(j.|.)supported_filetypes})(-.)"