mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 17:55:01 +00:00
Replace coder.__name__
with coder.edit_format
in the list comprehension to ensure that the actual edit format names are collected rather than the class names of the coders.
This commit is contained in:
parent
7f028eeb1e
commit
50f3ab69dc
1 changed files with 1 additions and 1 deletions
|
@ -48,7 +48,7 @@ class Commands:
|
|||
"Switch to a new editing mode"
|
||||
|
||||
ef = args.strip()
|
||||
valid_formats = [coder.__name__ for coder in self.coder.__all__ if hasattr(coder, 'edit_format')]
|
||||
valid_formats = [coder.edit_format for coder in self.coder.__all__ if hasattr(coder, 'edit_format')]
|
||||
|
||||
if ef not in valid_formats:
|
||||
self.io.tool_error(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue