From 30af7f68bd7b6ab6271701ddec0cbea414ad1c7a Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Thu, 8 Aug 2024 09:58:46 -0300 Subject: [PATCH] fix: Clear lines of interest instead of clearing the entire context --- aider/repomap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aider/repomap.py b/aider/repomap.py index 5836cdd4b..27ca3c0c2 100644 --- a/aider/repomap.py +++ b/aider/repomap.py @@ -495,7 +495,7 @@ class RepoMap: self.tree_context_cache[rel_fname] = context context = self.tree_context_cache[rel_fname] - context.clear_lines_of_interest() + context.lines_of_interest = set() context.add_lines_of_interest(lois) context.add_context() res = context.format()