diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/error_highlight/formatter.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/error_highlight/formatter.rb b/lib/error_highlight/formatter.rb index ba0093d3e5..5180576405 100644 --- a/lib/error_highlight/formatter.rb +++ b/lib/error_highlight/formatter.rb @@ -58,7 +58,7 @@ module ErrorHighlight def self.terminal_width # lazy load io/console, so it's not loaded when 'max_snippet_width' is set require "io/console" - STDERR.winsize[1] if STDERR.tty? + $stderr.winsize[1] if $stderr.tty? rescue LoadError, NoMethodError, SystemCallError # do not truncate when window size is not available end |