Skip to content

Commit 93f4703

Browse files
committed
fix: range
1 parent 1cef521 commit 93f4703

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/ai-native/src/browser/mcp/base-apply.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ export abstract class BaseApplyService extends WithEventBus {
572572
.map((line) => {
573573
if (line.startsWith('@@')) {
574574
const [, , , start, lineCount] = line.match(/@@ -(\d+),(\d+) \+(\d+),(\d+) @@/)!;
575-
return new Range(parseInt(start, 10), 0, parseInt(start, 10) + parseInt(lineCount, 10), 0);
575+
return new Range(parseInt(start, 10), 0, parseInt(start, 10) + parseInt(lineCount, 10) - 1, 0);
576576
}
577577
return null;
578578
})

0 commit comments

Comments
 (0)