aboutsummaryrefslogtreecommitdiff
path: root/projectile.el
diff options
context:
space:
mode:
authorBozhidar Batsov <bozhidar@batsov.dev>2025-01-31 23:28:44 +0200
committerBozhidar Batsov <bozhidar@batsov.dev>2025-01-31 23:30:27 +0200
commit0a4a89b3d9899a06e1d479cea85fdb1c0d79b655 (patch)
treef5997bdf2736c59ea42ad2f52ff2c03294291978 /projectile.el
parentc64975df4e882f8434029ec62ca91a2606d52995 (diff)
[Fix #1893] Fix projectile-discover-projects-in-directory when called interactively
Diffstat (limited to 'projectile.el')
-rw-r--r--projectile.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/projectile.el b/projectile.el
index eae4fde..d284b67 100644
--- a/projectile.el
+++ b/projectile.el
@@ -1183,6 +1183,9 @@ discover projects there."
(interactive
(list (read-directory-name "Starting directory: ")))
+ ;; set a default value for depth
+ (setq depth (or depth 1))
+
(if (file-directory-p directory)
(if (and (numberp depth) (> depth 0))
;; Ignore errors when listing files in the directory, because