Fix +lookup/file in non-file-visiting buffers
Throws a stringp error is buffer-file-name is nil. Reported by @myme
This commit is contained in:
parent
4ad9e18135
commit
25bc9cfbaf
1 changed files with 1 additions and 1 deletions
|
@ -245,7 +245,7 @@ Otherwise, falls back on `find-file-at-point'."
|
|||
((not (and +lookup-file-functions
|
||||
(+lookup--jump-to :file path)))
|
||||
(let ((fullpath (expand-file-name path)))
|
||||
(when (file-equal-p fullpath buffer-file-name)
|
||||
(when (and buffer-file-name (file-equal-p fullpath buffer-file-name))
|
||||
(user-error "Already here"))
|
||||
(let* ((insert-default-directory t)
|
||||
(project-root (doom-project-root 'nocache))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue