fix: add suffix "md" when opening editor in InputOutput class

This commit is contained in:
Kay Gosho 2025-04-27 16:06:32 +09:00 committed by Kay Gosho (aider)
parent 25a303935c
commit 07759813ed

View file

@ -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")