From 9ca5da5a0b745c8ac67b560939e868abdeb1fd3b Mon Sep 17 00:00:00 2001 From: Johnny Date: Fri, 15 Apr 2016 15:11:06 +0800 Subject: [PATCH] Fixed a bug in GitX (L) that any "file link" in the changes-of-a-commit view cannot jump, when the file's path contain substring "b/", e.g. file path cab/xxx.txt. However, if the path have a folder with name ended in " b" (very rare), it will not work, still. --- GLFileView.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GLFileView.m b/GLFileView.m index ac8a6bea7..95d663527 100644 --- a/GLFileView.m +++ b/GLFileView.m @@ -465,7 +465,7 @@ + (NSString *)parseDiffHeader:(NSString *)txt +(NSString *)getFileName:(NSString *)line { - NSRange b = [line rangeOfString:@"b/"]; + NSRange b = [line rangeOfString:@" b/"]; if (b.length == 0) b = [line rangeOfString:@"--cc "];