Skip to content

Commit 01dd4ff

Browse files
authored
Merge pull request #1393 from ychin/show-pre-release-about-macvim
About MacVim show "pre-release" when running a pre-release build
2 parents 43b4967 + e8267a8 commit 01dd4ff

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/MacVim/MMApplication.m

+5-1
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,12 @@ - (void)orderFrontStandardAboutPanel:(id)sender
5252
@"CFBundleVersion"];
5353
NSString *marketingVersion = [[NSBundle mainBundle]
5454
objectForInfoDictionaryKey:@"CFBundleShortVersionString"];
55+
56+
BOOL isPrerelease = [version containsSubstring:@"."];
57+
NSString *prerelease = isPrerelease ? @"\npre-release" : @"";
58+
5559
NSString *title = [NSString stringWithFormat:
56-
@"Vim %@ (MacVim r%@)", marketingVersion, version];
60+
@"MacVim r%@ (Vim %@)%@", version, marketingVersion, prerelease];
5761

5862
[self orderFrontStandardAboutPanelWithOptions:
5963
[NSDictionary dictionaryWithObjectsAndKeys:

0 commit comments

Comments
 (0)