We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9fff83a commit f25aad8Copy full SHA for f25aad8
PBGitCommitController.m
@@ -57,8 +57,10 @@ - (IBAction)signOff:(id)sender
57
[repository.config valueForKeyPath:@"user.email"]];
58
59
if([commitMessageView.string rangeOfString:SOBline].location == NSNotFound) {
60
+ NSArray *selectedRanges = [commitMessageView selectedRanges];
61
commitMessageView.string = [NSString stringWithFormat:@"%@\n\n%@",
62
commitMessageView.string, SOBline];
63
+ [commitMessageView setSelectedRanges: selectedRanges];
64
}
65
66
0 commit comments