We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e62b54 commit ac704f0Copy full SHA for ac704f0
GLFileView.m
@@ -297,7 +297,8 @@ + (NSString *)parseDiff:(NSString *)txt
297
NSScanner *scan=[NSScanner scannerWithString:txt];
298
NSString *block;
299
300
- [scan scanUpToString:@"\ndiff --git" intoString:NULL]; //move to first diff
+ if(![txt hasPrefix:@"diff --git"])
301
+ [scan scanUpToString:@"diff --git" intoString:&block]; //move to first diff
302
303
while([scan scanString:@"diff --git" intoString:NULL]){ // is a diff start?
304
[scan scanUpToString:@"\ndiff --git" intoString:&block];
0 commit comments