branch: elpa/aidermacs
commit ffb8126d520c62500ae74725c22736c27273abf5
Author: Kang Tu <[email protected]>
Commit: Kang Tu (aider) <[email protected]>
refactor: simplify aider-read-string function by removing unnecessary
string processing
---
aider.el | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/aider.el b/aider.el
index 6752c2150c..94ab272b97 100644
--- a/aider.el
+++ b/aider.el
@@ -26,11 +26,7 @@
(defun aider-read-string (prompt &optional initial-input)
"Read a string from the user with PROMPT and optional INITIAL-INPUT.
This function can be customized or redefined by the user."
- (let ((input (read-string prompt initial-input)))
- (if (string-match-p "\n" input)
- (let ((lines (split-string input "\n" t)))
- (concat (mapconcat 'identity lines " ") (if (string-suffix-p " "
input) "\n" "")))
- input)))
+ (read-string prompt initial-input))
;; Transient menu for Aider commands
(transient-define-prefix aider-transient-menu ()