mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
Fix handling BOM when user Rejects apply_diff (#3960)
Related issue is #1483, related pull request is #1500 - but it looks like it missed the revert of proposed diff case
This commit is contained in:
parent
6ebc95d2a8
commit
ad2ff932fa
1 changed files with 1 additions and 1 deletions
|
|
@ -278,7 +278,7 @@ export class DiffViewProvider {
|
|||
updatedDocument.positionAt(updatedDocument.getText().length),
|
||||
)
|
||||
|
||||
edit.replace(updatedDocument.uri, fullRange, this.originalContent ?? "")
|
||||
edit.replace(updatedDocument.uri, fullRange, this.stripAllBOMs(this.originalContent ?? ""))
|
||||
|
||||
// Apply the edit and save, since contents shouldnt have changed
|
||||
// this won't show in local history unless of course the user made
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue