mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 09:14:59 +00:00
fix: add suffix "md" when opening editor in InputOutput class
This commit is contained in:
parent
25a303935c
commit
07759813ed
1 changed files with 1 additions and 1 deletions
|
@ -595,7 +595,7 @@ class InputOutput:
|
||||||
current_text = buffer.text
|
current_text = buffer.text
|
||||||
|
|
||||||
# Open the editor with the current 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
|
# Replace the buffer with the edited text, strip any trailing newlines
|
||||||
buffer.text = edited_text.rstrip("\n")
|
buffer.text = edited_text.rstrip("\n")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue