From 9d3e8a88a0d06310ff0a9309a5439ab97b8f922f Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Sat, 11 Sep 2021 15:11:48 -0400 Subject: Also defer printing comment for lone close-parens --- bin/git-comment.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/git-comment.pl b/bin/git-comment.pl index 27a06998..71149b8d 100644 --- a/bin/git-comment.pl +++ b/bin/git-comment.pl @@ -74,7 +74,7 @@ while (<$pipe>) { $message{$commit} = \@message; } elsif (/^\t(\s*)(.*)/) { my ($indent, $line) = ($1, $2); - unless ($printed || $line =~ /^}?;?$/) { + unless ($printed || $line =~ /^[})]?;?$/) { $printed = 1; if ( $group >= $minGroup && -- cgit 1.4.1