emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/aidermacs ffb8126d52 056/466: refactor: simplify aider-rea


From: ELPA Syncer
Subject: [nongnu] elpa/aidermacs ffb8126d52 056/466: refactor: simplify aider-read-string function by removing unnecessary string processing
Date: Sat, 15 Mar 2025 19:11:07 -0400 (EDT)

branch: elpa/aidermacs
commit ffb8126d520c62500ae74725c22736c27273abf5
Author: Kang Tu <kang_tu@apple.com>
Commit: Kang Tu (aider) <kang_tu@apple.com>

    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 ()



reply via email to

[Prev in Thread] Current Thread [Next in Thread]