Skip to content

Commit 5bc3af1

Browse files
authored
fix: start line not working in multiple apply diff (#5019)
1 parent ff9b6b3 commit 5bc3af1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/diff/strategies/multi-file-search-replace.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ Each file requires its own path, start_line, and diff elements.
485485

486486
const replacements = matches
487487
.map((match) => ({
488-
startLine: Number(match[2] ?? 0),
488+
startLine: _paramStartLine ?? Number(match[2] ?? 0),
489489
searchContent: match[6],
490490
replaceContent: match[7],
491491
}))

0 commit comments

Comments
 (0)