Skip to content

Commit

Permalink
Use $stderr instead of STDERR for Ractor
Browse files Browse the repository at this point in the history
  • Loading branch information
wanabe authored and mame committed Jan 21, 2025
1 parent a8e9eb7 commit a221a4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/error_highlight/formatter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def self.max_snippet_width=(width)
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
Expand Down

0 comments on commit a221a4b

Please sign in to comment.