fix add line wrong index (#1927)

This commit is contained in:
Sam Hoang Van 2025-03-24 01:31:15 +07:00 • committed by GitHub
parent e810a886d2
commit a866a1c271
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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) {