style: Run linter and fix code formatting issues in commands.py

This commit is contained in:
Paul Gauthier (aider) 2024-09-27 16:35:27 -07:00
parent 57257b7c15
commit 7e1497e114

View file

@ -586,17 +586,14 @@ class Commands:
text = document.text_before_cursor.lstrip()
# Identify the command and extract text after it
command = '/read-only'
command = "/read-only"
if text.startswith(command):
after_command = text[len(command):].lstrip()
after_command = text[len(command) :].lstrip()
else:
after_command = text
# Create a new Document object with the text after the command
new_document = Document(
after_command,
cursor_position=len(after_command)
)
new_document = Document(after_command, cursor_position=len(after_command))
path_completer = PathCompleter(
only_directories=False,