diff --git a/PBCommitMessageView.m b/PBCommitMessageView.m index ad18ed7..c9c8c43 100644 --- a/PBCommitMessageView.m +++ b/PBCommitMessageView.m @@ -13,9 +13,7 @@ - (void)drawRect:(NSRect)aRect { - NSColor *originalColor = [self backgroundColor]; - [originalColor set]; - NSRectFill(aRect); + [super drawRect:aRect]; // draw a vertical line after the given size (used as an indicator // for the first line of the commit message) @@ -33,10 +31,6 @@ line.size.height = aRect.size.height; NSRectFill(line); } - - [self setBackgroundColor:nil]; - [super drawRect:aRect]; - [self setBackgroundColor:originalColor]; } @end diff --git a/PBGitCommitView.xib b/PBGitCommitView.xib index d25307b..42d061a 100644 --- a/PBGitCommitView.xib +++ b/PBGitCommitView.xib @@ -21,7 +21,7 @@ YES - + YES @@ -409,7 +409,7 @@ 1 - 11235 + 3971 0 @@ -1389,7 +1389,7 @@ YES com.apple.InterfaceBuilder.CocoaPlugin - {{1183, 504}, {852, 432}} + {{1091, 655}, {852, 432}} com.apple.InterfaceBuilder.CocoaPlugin diff --git a/PBGitRepository.m b/PBGitRepository.m index bd56838..92cbb15 100644 --- a/PBGitRepository.m +++ b/PBGitRepository.m @@ -150,6 +150,11 @@ NSString* PBGitRepositoryErrorDomain = @"GitXErrorDomain"; return self; } +- (BOOL)isDocumentEdited +{ + return NO; +} + // The fileURL the document keeps is to the .git dir, but that’s pretty // useless for display in the window title bar, so we show the directory above - (NSString *) displayName