diff --git a/aider/io.py b/aider/io.py index 08c03ef53..90f581aab 100644 --- a/aider/io.py +++ b/aider/io.py @@ -595,7 +595,7 @@ class InputOutput: current_text = buffer.text # Open the editor with the current text - edited_text = pipe_editor(input_data=current_text) + edited_text = pipe_editor(input_data=current_text, suffix="md") # Replace the buffer with the edited text, strip any trailing newlines buffer.text = edited_text.rstrip("\n")