Skip to content

Commit

Permalink
Merge pull request doomemacs#5232 from samrjack/fix-pdf-blocking-issue
Browse files Browse the repository at this point in the history
Prevent extra variable from being passed in macro.
  • Loading branch information
hlissner committed Jul 4, 2021
2 parents 2731685 + bb677cf commit 7afb09d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/tools/pdf/config.el
Expand Up @@ -126,7 +126,9 @@
(defadvice! +pdf-suppress-large-file-prompts-a (orig-fn size op-type filename &optional offer-raw)
:around #'abort-if-file-too-large
(unless (string-match-p "\\.pdf\\'" filename)
(funcall orig-fn size op-type filename offer-raw))))
(if offer-raw
(funcall orig-fn size op-type filename offer-raw)
(funcall orig-fn size op-type filename)))))


(use-package! saveplace-pdf-view
Expand Down

0 comments on commit 7afb09d

Please sign in to comment.