Skip to content

Commit

Permalink
fix(project): don't try to add inexistant directories
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed Nov 11, 2023
1 parent 8ca3831 commit 50b8448
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion elisp/+project.el
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ to scan directories recursively."
(recursive (cdr cons-dir))
(sub-dirs (+directory-subdirs root-dir)))
(dolist (dir sub-dirs)
(project-remember-projects-under dir recursive)))))
(when (file-directory-p dir)
(project-remember-projects-under dir recursive))))))

;;;###autoload
(defun +project-add-project (dir &optional dont-ask)
Expand Down

0 comments on commit 50b8448

Please sign in to comment.