From 725b5f70631f7b79e5f9be38a4a0e221458405af Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Fri, 27 Sep 2024 19:45:04 -0700 Subject: [PATCH] feat: centralize pygments.literal.string style configuration in _get_style method and simplify calling code --- aider/io.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/aider/io.py b/aider/io.py index d0aceed90..09256feeb 100644 --- a/aider/io.py +++ b/aider/io.py @@ -258,6 +258,7 @@ class InputOutput: style_dict.setdefault("", self.user_input_color) style_dict.update( { + "pygments.literal.string": f"bold italic {self.user_input_color}", "completion-menu": ( f"bg:{self.completion_menu_bg_color} {self.completion_menu_color}" ), @@ -347,10 +348,7 @@ class InputOutput: inp = "" multiline_input = False - style_dict = { - "pygments.literal.string": f"bold italic {self.user_input_color}", - } - style = self._get_style(style_dict) + style = self._get_style() completer_instance = ThreadedCompleter( AutoCompleter(