branch: elpa/aidermacs
commit 6c7970928cb6f8858880dbb59032df583500d99f
Author: Kang Tu <kang...@apple.com>
Commit: Kang Tu <kang...@apple.com>

    fix a bug
---
 aider.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/aider.el b/aider.el
index 39ca6c9f1c..2a47b2a143 100644
--- a/aider.el
+++ b/aider.el
@@ -57,8 +57,8 @@ If not in a git repository, an error is raised."
          (git-repo-path (shell-command-to-string "git rev-parse 
--show-toplevel")))
     (if (string-match-p "fatal" git-repo-path)
         (error "Not in a git repository")
-      (let ((home-path (expand-file-name "~"))
-            (relative-path (substring git-repo-path (length home-path))))
+      (let* ((home-path (expand-file-name "~"))
+             (relative-path (substring git-repo-path (length home-path))))
         (format "*aider:%s*" (concat "~" (replace-regexp-in-string "\n" "" 
relative-path)))))))
 
 (defun aider-run-aider ()

Reply via email to