From a866a1c2711a3a79efd065062b49d91f11e5afd3 Mon Sep 17 00:00:00 2001 From: Sam Hoang Van Date: Mon, 24 Mar 2025 01:31:15 +0700 Subject: [PATCH] fix add line wrong index (#1927) --- src/core/Cline.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/Cline.ts b/src/core/Cline.ts index 262c2233b4..cdc9b5d6ec 100644 --- a/src/core/Cline.ts +++ b/src/core/Cline.ts @@ -2333,7 +2333,7 @@ export class Cline extends EventEmitter { } else { content = addLineNumbers( await readLines(absolutePath, endLine, startLine), - startLine, + startLine + 1, ) } } else if (!isBinary && totalLines > maxReadFileLine) {