Skip to content

Commit

Permalink
refactor: conditionally set cursor shape only in vi mode
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-gauthier committed Oct 29, 2024
1 parent 5188872 commit d1cf3d4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion aider/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,9 @@ def __init__(
"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:
Expand Down

0 comments on commit d1cf3d4

Please sign in to comment.