branch: elpa/aidermacs
commit a7f21534522a725259cf2efd46837d7bd88ec231
Merge: 687d9eff7c c8c0c646e8
Author: Kang Tu <tni...@gmail.com>
Commit: GitHub <nore...@github.com>

    Merge pull request #41 from LukeMauldin/main
    
    Fix: Use correct prefix in aider-add-or-read-current-file
---
 aider.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/aider.el b/aider.el
index db1fa69f25..8d6e5637bb 100644
--- a/aider.el
+++ b/aider.el
@@ -292,7 +292,7 @@ COMMAND should be a string representing the command to 
send."
   ;; Ensure the current buffer is associated with a file
   (if (not buffer-file-name)
       (message "Current buffer is not associated with a file.")
-    (let ((command (format "%s %s" (aider--get-add-command-prefix)
+    (let ((command (format "%s %s" command-prefix
                            (file-local-name (expand-file-name 
buffer-file-name)))))
       ;; Use the shared helper function to send the command
       (aider--send-command command))))
@@ -302,7 +302,7 @@ COMMAND should be a string representing the command to 
send."
 (defun aider-add-current-file ()
   "Send the command \"/add <current buffer file full path>\" to the 
corresponding aider comint buffer."
   (interactive)
-  (aider-add-or-read-current-file "/add"))
+  (aider-add-or-read-current-file (aider--get-add-command-prefix)))
 
 ;; New function to add files in all buffers in current emacs window
 ;;;###autoload

Reply via email to