From 918d34ec89259200e69cbdfff5dc2141d93bf0ec Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 7 Feb 2021 23:05:15 -1000 Subject: [PATCH] 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. --- lib/PublicInbox/LEI.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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} }; -- 2.44.0