branch: elpa/aidermacs
commit 14238322a63636e08a098ee515947dac94d19f0b
Author: Zhen NI <[email protected]>
Commit: Matthew Zeng <[email protected]>
Fix aider version check
---
aidermacs.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/aidermacs.el b/aidermacs.el
index 11d358e178c..a8c3a511b5f 100644
--- a/aidermacs.el
+++ b/aidermacs.el
@@ -175,8 +175,8 @@ Uses cached version if available to avoid repeated process
calls."
(when (= 0 (process-file aidermacs-program nil t nil
"--version"))
(goto-char (point-min))
(when (re-search-forward
- (concat aidermacs-program "
\\([0-9]+\\.[0-9]+\\.[0-9]+\\)") nil t)
- (match-string 1)))))))
+ "\\([0-9]+\\.[0-9]+\\.[0-9]+\\)" nil t)
+ (match-string 0)))))))
(message "Aider version %s" aidermacs--cached-version)
aidermacs--cached-version)