fix: Use Text() to format user input in console.print()

This commit is contained in:
Paul Gauthier 2024-08-11 10:09:36 -07:00 committed by Paul Gauthier (aider)
parent 9b4211fd85
commit 543fa68b45

View file

@ -330,7 +330,7 @@ class InputOutput:
def user_input(self, inp, log_only=True):
if not log_only:
style = dict(style=self.user_input_color) if self.user_input_color else dict()
self.console.print(inp, **style)
self.console.print(Text(inp), **style)
prefix = "####"
if inp: