From a52c751395e6f7d16dec7e484bff2d3122b99ec5 Mon Sep 17 00:00:00 2001 From: Alejandro Huertas Herrero Date: Tue, 3 Mar 2020 18:13:26 +0100 Subject: [PATCH] M #-: fix expand CLI data with pager (#4296) --- src/cli/cli_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cli/cli_helper.rb b/src/cli/cli_helper.rb index 0ffd7d1c1f..8ceb9d05f7 100644 --- a/src/cli/cli_helper.rb +++ b/src/cli/cli_helper.rb @@ -639,7 +639,7 @@ module CLIHelper def expand_columns(expand_columns, all = false) return if expand_columns.empty? - if $stdout.tty? + if $stdout.tty? || IO.console.tty? terminal_size = IO.console.winsize[1] else terminal_size = nil