fix_completion.diff 1.4 KB

12345678910111213141516171819202122232425262728293031323334
  1. diff -Naur zathura-0.5.1/data/bash-completion.in zathura-0.5.1.patched/data/bash-completion.in
  2. --- zathura-0.5.1/data/bash-completion.in 2022-09-08 18:17:27.000000000 -0400
  3. +++ zathura-0.5.1.patched/data/bash-completion.in 2022-11-14 14:00:24.545471924 -0500
  4. @@ -4,6 +4,7 @@
  5. local EXTS=""
  6. for PLUGIN in @PLUGINDIR@/lib*.so; do
  7. + PLUGIN="$( realpath "$PLUGIN" )"
  8. case ${PLUGIN##*/} in
  9. libpdf-poppler.so)
  10. EXTS="$EXTS|pdf|PDF"
  11. diff -Naur zathura-0.5.1/data/fish-completion.in zathura-0.5.1.patched/data/fish-completion.in
  12. --- zathura-0.5.1/data/fish-completion.in 2022-09-08 18:17:27.000000000 -0400
  13. +++ zathura-0.5.1.patched/data/fish-completion.in 2022-11-14 14:02:01.958086580 -0500
  14. @@ -1,6 +1,7 @@
  15. # Complete custom suffix based on libraries installed
  16. function __fish_complete_zathura
  17. for plugin in @PLUGINDIR@/*.so
  18. + set plugin (realpath $plugin)
  19. switch (basename $plugin)
  20. case libpdf-poppler.so
  21. __fish_complete_suffix .pdf
  22. diff -Naur zathura-0.5.1/data/zsh-completion.in zathura-0.5.1.patched/data/zsh-completion.in
  23. --- zathura-0.5.1/data/zsh-completion.in 2022-09-08 18:17:27.000000000 -0400
  24. +++ zathura-0.5.1.patched/data/zsh-completion.in 2022-11-14 14:00:17.978363071 -0500
  25. @@ -27,6 +27,7 @@
  26. local PLUGIN
  27. local -a exts
  28. for PLUGIN in @PLUGINDIR@/lib*.so; do
  29. + PLUGIN="$( realpath "$PLUGIN" )"
  30. case ${PLUGIN##*/} in
  31. libpdf-poppler.so)
  32. exts+=( pdf PDF )