mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-07 05:05:01 +00:00
pull the filename from the +++ line
This commit is contained in:
parent
6165fcc960
commit
042a2b8a08
3 changed files with 3 additions and 4 deletions
|
@ -334,8 +334,8 @@ def process_fenced_block(lines, start_line_num):
|
|||
block = lines[start_line_num:line_num]
|
||||
block.append("@@ @@")
|
||||
|
||||
if block[0].startswith("--- "):
|
||||
fname = block[0].split()[1]
|
||||
if block[1].startswith("+++ "):
|
||||
fname = block[1].split()[1]
|
||||
block = block[2:]
|
||||
else:
|
||||
fname = None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue