fix(default): browse-project: stringp type error
doom-project-root can return nil if not in a project, causing a type error (#7093). This changes +default/browse-project to fall back to the current directory in that case. Fix: #7093
This commit is contained in:
parent
c523cd0e93
commit
45d25af436
1 changed files with 2 additions and 1 deletions
|
@ -3,7 +3,8 @@
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun +default/browse-project ()
|
(defun +default/browse-project ()
|
||||||
"Browse files from the current project's root."
|
"Browse files from the current project's root."
|
||||||
(interactive) (doom-project-browse (doom-project-root)))
|
(interactive)
|
||||||
|
(doom-project-browse (or (doom-project-root) default-directory)))
|
||||||
;; NOTE No need for find-in-project, use `projectile-find-file'
|
;; NOTE No need for find-in-project, use `projectile-find-file'
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue