Skip to content

Commit 4f5f4a7

Browse files
Copilottninja
andcommitted
Add clarifying comments for backend-specific input handling
Co-authored-by: tninja <[email protected]>
1 parent 5e43ed8 commit 4f5f4a7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

aider-core.el

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,11 +274,12 @@ Returns the created buffer or nil on failure."
274274
(aider--comint-send-string-syntax-highlight buffer text))
275275
('vterm
276276
(with-current-buffer buffer
277+
;; vterm provides special functions for sending input that handle terminal control codes
277278
(vterm-send-string text)
278279
(vterm-send-return)))
279280
('eat
280281
(with-current-buffer buffer
281-
;; For eat, we send the text followed by a newline to the process
282+
;; eat uses standard process communication, so we send directly to the process
282283
(let ((proc (get-buffer-process buffer)))
283284
(when proc
284285
(process-send-string proc (concat text "\n"))))))

0 commit comments

Comments
 (0)