Merge pull request #2563 from hdoer/patch-2
fix: incorrect prefix/suffix range handling in /edit command
This commit is contained in:
commit
84171d1dc1
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