mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-25 23:05:00 +00:00
refactor: conditionally set cursor shape only in vi mode
This commit is contained in:
parent
5188872791
commit
d1cf3d4600
1 changed files with 2 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue