branch: elpa/aidermacs
commit b3ef6373bdce9a8af6b6a8e52a5b347860a61372
Author: Kang Tu (aider) <[email protected]>
Commit: Kang Tu (aider) <[email protected]>
fix: ensure current file is added before sending command in
aider-general-command
---
aider.el | 2 ++
1 file changed, 2 insertions(+)
diff --git a/aider.el b/aider.el
index 199cd6ef2b..e26e64cd86 100644
--- a/aider.el
+++ b/aider.el
@@ -131,6 +131,8 @@ COMMAND should be a string representing the command to
send."
COMMAND is a string representing the command to send."
(interactive
(list (read-string "Enter command to send to aider: ")))
+ ;; Ensure the current file is added before sending the command
+ (aider-add-current-file)
;; Use the shared helper function to send the command
(aider--send-command command))