From d81e7e64f2bd90fb69585a404fa1bfbdec7a22e2 Mon Sep 17 00:00:00 2001 From: "C. 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(-) (limited to 'bin') diff --git a/bin/git-comment.pl b/bin/git-comment.pl index a46f43fe..64361a60 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