Skip to content

Commit a221a4b

Browse files
wanabemame
authored andcommitted
Use $stderr instead of STDERR for Ractor
1 parent a8e9eb7 commit a221a4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/error_highlight/formatter.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def self.max_snippet_width=(width)
5858
def self.terminal_width
5959
# lazy load io/console, so it's not loaded when 'max_snippet_width' is set
6060
require "io/console"
61-
STDERR.winsize[1] if STDERR.tty?
61+
$stderr.winsize[1] if $stderr.tty?
6262
rescue LoadError, NoMethodError, SystemCallError
6363
# do not truncate when window size is not available
6464
end

0 commit comments

Comments
 (0)