Skip to content

Commit

Permalink
Fix commit message font on 10.13
Browse files Browse the repository at this point in the history
Ensure the commitMessageView.typingAttributes
dictionary is not nil before setting properties on it.

Fixes rowanj#173
Fixes regression from a118470 on 10.13
  • Loading branch information
nanotech authored Jan 25, 2019
1 parent 6c43b53 commit 303abc9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Classes/Controllers/PBGitCommitController.m
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ - (void)awakeFromNib
commitMessageView.delegate = self;

NSMutableDictionary *attrs = commitMessageView.typingAttributes.mutableCopy;
if (!attrs) {
attrs = [NSMutableDictionary dictionary];
}
attrs[NSFontAttributeName] = [NSFont fontWithName:@"Menlo" size:12.0];
commitMessageView.typingAttributes = attrs;

Expand Down

0 comments on commit 303abc9

Please sign in to comment.