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:
parent
766fc3e4a9
commit
5683ffe0d2
1 changed files with 1 additions and 1 deletions
|
@ -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!
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue