fix edit command prefix and suffix range bug
maxStartLine should minus 1 curEndLine should plus 1
This commit is contained in:
parent
d213b395c9
commit
f8f681b523
1 changed files with 2 additions and 2 deletions
|
|
@ -95,10 +95,10 @@ export async function getPromptParts(
|
|||
}
|
||||
|
||||
let filePrefix = fullFileContentsList
|
||||
.slice(curStartLine, maxStartLine)
|
||||
.slice(curStartLine, maxStartLine - 1)
|
||||
.join("\n");
|
||||
let fileSuffix = fullFileContentsList
|
||||
.slice(minEndLine, curEndLine - 1)
|
||||
.slice(minEndLine, curEndLine + 1)
|
||||
.join("\n");
|
||||
|
||||
if (rif.contents.length > 0) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue