Skip to content

Commit 75af92a

Browse files
authoredMar 18, 2021
Update parse.ts
fix new line for windows
1 parent 5c2c92b commit 75af92a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎src/patch/parse.ts

+1
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ const hunkLinetypes: {
142142
"\\": "pragma",
143143
// Treat blank lines as context
144144
undefined: "context",
145+
"\r": "context",
145146
}
146147

147148
function parsePatchLines(

0 commit comments

Comments
 (0)
Please sign in to comment.