fix: start line not working in multiple apply diff (#5019)

This commit is contained in:
Sam Hoang Van 2025-06-23 10:33:52 +07:00 committed by GitHub
parent ff9b6b3ef6
commit 5bc3af1bc3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -485,7 +485,7 @@ Each file requires its own path, start_line, and diff elements.
const replacements = matches
.map((match) => ({
startLine: Number(match[2] ?? 0),
startLine: _paramStartLine ?? Number(match[2] ?? 0),
searchContent: match[6],
replaceContent: match[7],
}))