diff options
author | June McEnroe <june@causal.agency> | 2021-09-11 15:11:48 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2021-09-11 15:11:48 -0400 |
commit | d81e7e64f2bd90fb69585a404fa1bfbdec7a22e2 (patch) | |
tree | f659bbde38fd07555afee7e2c8a33a1ecfb6f066 | |
parent | Publish "git-comment" (diff) | |
download | src-d81e7e64f2bd90fb69585a404fa1bfbdec7a22e2.tar.gz src-d81e7e64f2bd90fb69585a404fa1bfbdec7a22e2.zip |
Also defer printing comment for lone close-parens
-rw-r--r-- | bin/git-comment.pl | 2 |
1 files changed, 1 insertions, 1 deletions
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 && |