From 0291a992577b3146c33e8809500a617f17c889b4 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Thu, 19 Oct 2023 08:10:45 -0700 Subject: [PATCH] use rel_fname --- aider/repomap.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/aider/repomap.py b/aider/repomap.py index 9f8eced7b..eb43acc49 100644 --- a/aider/repomap.py +++ b/aider/repomap.py @@ -32,7 +32,10 @@ def to_tree(tags): # add a bogus tag at the end so we trip the this_fname != cur_fname... dummy_tag = (None,) for tag in tags + [dummy_tag]: - this_fname = tag[0] + if type(tag) is Tag: + this_fname = tag.rel_fname + else: + this_fname = tag[0] # ... here ... to output the final real entry in the list if this_fname != cur_fname: