Fix wrong-number-of-arguments error when opening org links

This commit is contained in:
Henrik Lissner 2020-04-16 12:59:40 -04:00
parent 10031153b7
commit fcb2612d3a
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -826,7 +826,7 @@ compelling reason, so..."
(add-hook! 'org-open-link-functions
(defun +org-open-old-pdf-links-fn (path)
(let ((regexp "^pdf\\(?:tools\\|view\\):"))
(when (string-match-p regexp)
(when (string-match-p regexp path)
(org-link-open (replace-regexp-in-string regexp "pdf:" link))
t))))