Skip to content

Commit

Permalink
Simplify multi-column to single column
Browse files Browse the repository at this point in the history
Fixes - Negative repeat count does nothing at /usr/lib64/perl5/vendor_perl/Cyrus/IMAP/Shell.pm line 688
  • Loading branch information
jeffgoh authored Mar 9, 2024
1 parent 0c2ebac commit 9a0df89
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions perl/imap/IMAP/Shell.pm
Original file line number Diff line number Diff line change
Expand Up @@ -685,13 +685,8 @@ sub _sc_list {
$w = $ll if $w > $ll;
my $n = int($ll / $w);
my $c;
for ($l = 0; $l < int((@l + $n - 1) / $n); $l++) {
for ($c = 0; $c < @l; $c += int((@l + $n - 1) / $n)) {
if ($l + $c < @l) {
$lfh->[1]->print($l[$l + $c], ' ' x ($w + 1 - length($l[$l + $c])));
}
}
$lfh->[1]->print("\n");
for (@l) {
$lfh->[1]->print("$_","\n");
}
0;
}
Expand Down

0 comments on commit 9a0df89

Please sign in to comment.