Browse Source

fix add line wrong index (#1927)

Sam Hoang Van 9 months ago
parent
commit
a866a1c271
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/core/Cline.ts

+ 1 - 1
src/core/Cline.ts

@@ -2333,7 +2333,7 @@ export class Cline extends EventEmitter<ClineEvents> {
 									} else {
 										content = addLineNumbers(
 											await readLines(absolutePath, endLine, startLine),
-											startLine,
+											startLine + 1,
 										)
 									}
 								} else if (!isBinary && totalLines > maxReadFileLine) {