mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 18:25:00 +00:00
fix: Create new Document object for path completion in completions_raw_read_only
This commit is contained in:
parent
8e02cadfbc
commit
c2afdcfdb9
1 changed files with 4 additions and 1 deletions
|
@ -589,8 +589,11 @@ class Commands:
|
|||
get_paths=lambda: [self.coder.root],
|
||||
)
|
||||
|
||||
# Create a new Document object with the modified text
|
||||
new_document = Document(text, cursor_position=len(text))
|
||||
|
||||
# Get completions from the PathCompleter
|
||||
completions = path_completer.get_completions(document.replace(text=text), complete_event)
|
||||
completions = path_completer.get_completions(new_document, complete_event)
|
||||
|
||||
# Yield the completions
|
||||
for completion in completions:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue