Permalink
Browse files

[laullon/gitx GH-41] Open in FileMerge link doesn't always work

  • Loading branch information...
1 parent f6e6968 commit 5e9210d2c2d787dd105c913db7af68b28979774d @laullon laullon committed Apr 28, 2011
Showing with 4 additions and 2 deletions.
  1. +4 −2 GLFileView.m
View
@@ -430,8 +430,10 @@ + (NSString *)parseDiffHeader:(NSString *)txt
+(NSString *)getFileName:(NSString *)line
{
- NSRange b = [line rangeOfString:@"b/"];
- NSString *file=[line substringFromIndex:b.location+2];
+ NSRange b = [line rangeOfString:@" b/"];
+ NSString *file=[line substringFromIndex:b.location+3];
+ DLog(@"line=%@",line);
+ DLog(@"file=%@",file);
return file;
}

0 comments on commit 5e9210d

Please sign in to comment.