mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Fix +lookup/file in non-project files
file-in-directory-p threw wrong-type-argument stringp errors because project-root was nil.
This commit is contained in:
@ -302,7 +302,7 @@ Otherwise, falls back on `find-file-at-point'."
|
||||
(ffap-file-finder
|
||||
(cond ((not (file-directory-p fullpath))
|
||||
#'find-file)
|
||||
((file-in-directory-p fullpath project-root)
|
||||
((ignore-errors (file-in-directory-p fullpath project-root))
|
||||
(lambda (dir)
|
||||
(let ((default-directory dir))
|
||||
(without-project-cache!
|
||||
|
Reference in New Issue
Block a user