From: Eric Wong Date: Mon, 8 Feb 2021 09:05:15 +0000 (-1000) Subject: lei: start_pager: drop COLUMNS default X-Git-Tag: v1.7.0~1159 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=918d34ec89259200e69cbdfff5dc2141d93bf0ec;p=public-inbox.git lei: start_pager: drop COLUMNS default It shouldn't be needed since none of our subcommands will care or attempt to format output. Once "lei show" is implemented, we'll run "git show" directly on the result. --- diff --git a/lib/PublicInbox/LEI.pm b/lib/PublicInbox/LEI.pm index 7b2a3e6f..2f370f52 100644 --- a/lib/PublicInbox/LEI.pm +++ b/lib/PublicInbox/LEI.pm @@ -792,8 +792,7 @@ sub start_pager { chomp(my $pager = <$fh> // ''); close($fh) or warn "`git var PAGER' error: \$?=$?"; return if $pager eq 'cat' || $pager eq ''; - # TODO TIOCGWINSZ - my $new_env = { LESS => 'FRX', LV => '-c', COLUMNS => 80 }; + my $new_env = { LESS => 'FRX', LV => '-c' }; $new_env->{MORE} = 'FRX' if $^O eq 'freebsd'; pipe(my ($r, $wpager)) or return warn "pipe: $!"; my $rdr = { 0 => $r, 1 => $self->{1}, 2 => $self->{2} };