branch: elpa/aidermacs
commit 8c813413d7bfdf22dbd6ea9eaa41c33bdbc91640
Author: Mingde (Matthew) Zeng <[email protected]>
Commit: Mingde (Matthew) Zeng <[email protected]>
Add relevant comment
Signed-off-by: Mingde (Matthew) Zeng <[email protected]>
---
aidermacs.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/aidermacs.el b/aidermacs.el
index 6b2fb98a2e..c9f82196dd 100644
--- a/aidermacs.el
+++ b/aidermacs.el
@@ -676,7 +676,8 @@ Otherwise, return FILE unchanged."
(defun aidermacs--prepare-file-paths-for-command (command files)
"Prepare FILES for use with COMMAND in aider.
-Handles TRAMP paths by extracting local parts and formats the command string."
+Handles TRAMP paths by extracting local parts and formats the command string,
+but wrapping them with double quotes that aider understands."
(let* ((localized-files (mapcar #'aidermacs--localize-tramp-path (delq nil
files)))
(quoted-files (mapcar (lambda (path) (format "\"%s\"" path))
localized-files)))
(if quoted-files