From 377512587ffe409f255e15e4edd24b03b1bd6a3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tino=20V=C3=A1zquez?= Date: Thu, 5 Mar 2020 10:52:36 +0100 Subject: [PATCH] M #-: fix expand CLI data with pager (#4303) --- 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 8ceb9d05f7..384b3b6454 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? || IO.console.tty? + if $stdout.tty? || (IO.console && IO.console.tty?) terminal_size = IO.console.winsize[1] else terminal_size = nil