fix: Clear lines of interest instead of clearing the entire context

This commit is contained in:
Paul Gauthier 2024-08-08 09:58:46 -03:00 committed by Paul Gauthier (aider)
parent bb4ee1a221
commit 30af7f68bd

View file

@ -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()