branch: elpa/aidermacs
commit d1c314bf963ca8bece302645f69df1cb29c7ac8f
Author: Mingde (Matthew) Zeng <[email protected]>
Commit: Mingde (Matthew) Zeng <[email protected]>
Fix aidermacs-project-root bug
---
aidermacs.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/aidermacs.el b/aidermacs.el
index 158782a3a4..5248b68067 100644
--- a/aidermacs.el
+++ b/aidermacs.el
@@ -81,7 +81,8 @@ When nil, disable auto-commits requiring manual git commits."
(defun aidermacs-project-root ()
"Get the project root using project.el, VC, or fallback to file directory.
This function tries multiple methods to determine the project root."
- (or (project-root (project-current))
+ (or (when-let ((proj (project-current)))
+ (project-root proj))
(vc-git-root default-directory)
(when buffer-file-name
(file-name-directory buffer-file-name))