mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 02:05:00 +00:00
refactor: modify command parsing to use last word only
This commit is contained in:
parent
0c743ce8e8
commit
7ff2dc89b4
1 changed files with 1 additions and 1 deletions
|
@ -586,7 +586,7 @@ class Commands:
|
||||||
text = document.text_before_cursor
|
text = document.text_before_cursor
|
||||||
|
|
||||||
# Skip the first word and the space after it
|
# Skip the first word and the space after it
|
||||||
after_command = " ".join(text.split()[1:])
|
after_command = text.split()[-1]
|
||||||
|
|
||||||
# Create a new Document object with the text after the command
|
# 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))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue