We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
$stderr
1 parent a8e9eb7 commit a221a4bCopy full SHA for a221a4b
lib/error_highlight/formatter.rb
@@ -58,7 +58,7 @@ def self.max_snippet_width=(width)
58
def self.terminal_width
59
# lazy load io/console, so it's not loaded when 'max_snippet_width' is set
60
require "io/console"
61
- STDERR.winsize[1] if STDERR.tty?
+ $stderr.winsize[1] if $stderr.tty?
62
rescue LoadError, NoMethodError, SystemCallError
63
# do not truncate when window size is not available
64
end
0 commit comments