Browse Source

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

Sam Hoang Van 6 months ago
parent
commit
5bc3af1bc3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/core/diff/strategies/multi-file-search-replace.ts

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

@@ -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],
 			}))