diff --git a/aider/commands.py b/aider/commands.py index 58b1c764a..fea6a208d 100644 --- a/aider/commands.py +++ b/aider/commands.py @@ -820,9 +820,7 @@ class Commands: else: # Use substring matching like we do for read-only files matched_files = [ - self.coder.get_rel_fname(f) - for f in self.coder.abs_fnames - if expanded_word in f + self.coder.get_rel_fname(f) for f in self.coder.abs_fnames if expanded_word in f ] if not matched_files: