fix CRLF bug in diff stream
This commit is contained in:
parent
22363da9e1
commit
cc0259e6b3
1 changed files with 3 additions and 0 deletions
|
|
@ -81,6 +81,9 @@ export async function* streamDiffLines(
|
|||
oldLines = [];
|
||||
}
|
||||
|
||||
// Trim end of oldLines, otherwise we have trailing \r on every line for CRLF files
|
||||
oldLines = oldLines.map((line) => line.trimEnd());
|
||||
|
||||
const prompt = constructPrompt(
|
||||
prefix,
|
||||
highlighted,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue