mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 02:05:00 +00:00
Move the fname inside the unified diff block
This commit is contained in:
parent
5043397848
commit
b5a92896ab
2 changed files with 4 additions and 3 deletions
|
@ -78,8 +78,6 @@ class WholeFileFunctionCoder(Coder):
|
|||
if not content:
|
||||
continue
|
||||
|
||||
res += path + ":\n"
|
||||
|
||||
this_final = (i < len(files) - 1) or final
|
||||
res += self.live_diffs(path, content, this_final)
|
||||
|
||||
|
@ -98,6 +96,7 @@ class WholeFileFunctionCoder(Coder):
|
|||
orig_lines,
|
||||
lines,
|
||||
final,
|
||||
fname=fname,
|
||||
).splitlines()
|
||||
|
||||
return "\n".join(show_diff)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue