[ruby/error_highlight] Use $stderr
instead of STDERR for Ractor
https://github.com/ruby/error_highlight/commit/a221a4b0eb
This commit is contained in:
parent
f33a76bfa9
commit
e5f81e511f
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user