M #-: fix expand CLI data with pager (#4296)

This commit is contained in:
Alejandro Huertas Herrero authored and GitHub committed 2020-03-03 18:13:26 +01:00
1 parent 459e287ff1
commit a52c751395
1 file changed
+1 -1
+1 -1
View File
@@ -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