mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 00:35:00 +00:00
use rel_fname
This commit is contained in:
parent
cff5534fab
commit
0291a99257
1 changed files with 4 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue