diff --git a/aider/commands.py b/aider/commands.py index bf957e69f..41213fc14 100644 --- a/aider/commands.py +++ b/aider/commands.py @@ -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(