fix: Use self.coder.root instead of self.root in get_paths function

This commit is contained in:
Paul Gauthier 2024-09-27 16:48:55 -07:00 committed by Paul Gauthier (aider)
parent 9644546a65
commit 542afbeb74

View file

@ -601,7 +601,7 @@ class Commands:
new_document = Document(after_command, cursor_position=len(after_command))
def get_paths():
return [self.root] if self.root else None
return [self.coder.root] if self.coder.root else None
path_completer = PathCompleter(
get_paths=get_paths,