mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 01:35:00 +00:00
style: Run linter and fix code formatting issues in commands.py
This commit is contained in:
parent
57257b7c15
commit
7e1497e114
1 changed files with 3 additions and 6 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue