Fix +lookup/file not opening URLs in browser

This commit is contained in:
Henrik Lissner 2021-04-30 01:06:42 -04:00
parent 437c33a8b2
commit ecdf2b0b08

View file

@ -271,7 +271,8 @@ otherwise falling back to ffap.el (find-file-at-point)."
((if (require 'ffap) (ffap-guesser))) ((if (require 'ffap) (ffap-guesser)))
((thing-at-point 'filename t))))) ((thing-at-point 'filename t)))))
(cond ((and (stringp guess) (cond ((and (stringp guess)
(file-exists-p guess)) (or (file-exists-p guess)
(ffap-url-p guess)))
(find-file-at-point guess)) (find-file-at-point guess))
((and (featurep! :completion ivy) ((and (featurep! :completion ivy)
(doom-project-p)) (doom-project-p))