From d2ac1751d329d9c060684ec708df36cc489f6abd Mon Sep 17 00:00:00 2001 From: Steve Hancock Date: Sun, 29 Dec 2019 07:24:55 -0800 Subject: [PATCH] fix benign error (csc goes out on last line only) --- lib/Perl/Tidy/Formatter.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Perl/Tidy/Formatter.pm b/lib/Perl/Tidy/Formatter.pm index e16faf9d..b967aed5 100644 --- a/lib/Perl/Tidy/Formatter.pm +++ b/lib/Perl/Tidy/Formatter.pm @@ -10038,8 +10038,8 @@ sub send_lines_to_vertical_aligner { && !grep { /^[\?\:]$/ } @types_to_go[ $ibeg + 1 .. $iend ]; } - # add any closing side comment - if ( $closing_side_comment && @{$rfields} ) { + # add any closing side comment to the last line + if ( $closing_side_comment && $n == $n_last_line && @{$rfields} ) { $rfields->[-1] .= " $closing_side_comment"; } -- 2.39.5