style: Format code to comply with linter rules

This commit is contained in:
Paul Gauthier (aider) 2025-03-21 09:19:34 -07:00
parent 710d540dcd
commit 930923c211

View file

@ -71,6 +71,7 @@ def restore_multiline(func):
class CommandCompletionException(Exception):
"""Raised when a command should use the normal autocompleter instead of command-specific completion."""
pass
@ -553,7 +554,10 @@ class InputOutput:
@kb.add("enter", eager=True, filter=~is_searching)
def _(event):
"Handle Enter key press"
if self.multiline_mode and not (self.editingmode == EditingMode.VI and event.app.vi_state.input_mode == InputMode.NAVIGATION):
if self.multiline_mode and not (
self.editingmode == EditingMode.VI
and event.app.vi_state.input_mode == InputMode.NAVIGATION
):
# In multiline mode and if not in vi-mode or vi navigation/normal mode, Enter adds a newline
event.current_buffer.insert_text("\n")
else: