Skip to content

Commit f4ca7e7

Browse files
committed
revert this
1 parent e56b922 commit f4ca7e7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/core/tools/applyDiffTool.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,11 @@ export async function applyDiffToolLegacy(
8989
let originalContent: string | null = await fs.readFile(absolutePath, "utf-8")
9090

9191
// Apply the diff to the original content
92-
const diffResult = (await cline.diffStrategy?.applyDiff(originalContent, diffContent)) ?? {
92+
const diffResult = (await cline.diffStrategy?.applyDiff(
93+
originalContent,
94+
diffContent,
95+
parseInt(block.params.start_line ?? ""),
96+
)) ?? {
9397
success: false,
9498
error: "No diff strategy available",
9599
}

0 commit comments

Comments
 (0)