Skip to content

Commit

Permalink
fix(project): correctly check if project root is a directory
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed Nov 14, 2023
1 parent 6b6ef59 commit 7b31d73
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions elisp/+project.el
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,9 @@ to scan directories recursively."
(let* ((cons-dir (ensure-list cons-dir))
(root-dir (car cons-dir))
(recursive (cdr cons-dir))
(sub-dirs (+directory-subdirs root-dir)))
(dolist (dir sub-dirs)
(when (file-directory-p dir)
(project-remember-projects-under dir recursive))))))
(sub-dirs (and (file-directory-p root-dir) (+directory-subdirs root-dir))))
(dolist (dir sub-dirs)
(project-remember-projects-under dir recursive)))))

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

0 comments on commit 7b31d73

Please sign in to comment.