From d1cf3d4600c287029280cac267e4bcbf1d47d00b Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Tue, 29 Oct 2024 13:50:40 -0700 Subject: [PATCH] refactor: conditionally set cursor shape only in vi mode --- aider/io.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/aider/io.py b/aider/io.py index 62c6fea2f..f71340d92 100644 --- a/aider/io.py +++ b/aider/io.py @@ -242,8 +242,9 @@ class InputOutput: "output": self.output, "lexer": PygmentsLexer(MarkdownLexer), "editing_mode": self.editingmode, - "cursor": ModalCursorShapeConfig(), #ai only include this if vi mode! } + if self.editingmode == EditingMode.VI: + session_kwargs["cursor"] = ModalCursorShapeConfig() if self.input_history_file is not None: session_kwargs["history"] = FileHistory(self.input_history_file) try: