]> Sergey Matveev's repositories - public-inbox.git/commitdiff
lei: start_pager: drop COLUMNS default
authorEric Wong <e@80x24.org>
Mon, 8 Feb 2021 09:05:15 +0000 (23:05 -1000)
committerEric Wong <e@80x24.org>
Mon, 8 Feb 2021 22:07:45 +0000 (22:07 +0000)
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

index 7b2a3e6fe19a9460ef45c7367dd268957c8b5cbe..2f370f5271e6fcfc682d43d1882dc85f11ea338e 100644 (file)
@@ -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} };