From c35a41466b88f8b2ca6dcea4b34f272c6050361c Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Fri, 27 Sep 2024 16:25:39 -0700 Subject: [PATCH] fix: correct completions_raw_read_only method to yield all path completions without unnecessary filtering --- aider/commands.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/aider/commands.py b/aider/commands.py index bcaae1202..d9a994e1e 100644 --- a/aider/commands.py +++ b/aider/commands.py @@ -588,13 +588,7 @@ class Commands: # ), ) - word_before_cursor = document.get_word_before_cursor(WORD=True) - dump(word_before_cursor) - - for completion in path_completer.get_completions(document, complete_event): - dump(completion) - if completion.text.startswith(word_before_cursor): - yield completion + yield from path_completer.get_completions(document, complete_event) def completions_add(self): files = set(self.coder.get_all_relative_files())