diff options
author | wanabe <[email protected]> | 2025-01-19 10:17:23 +0900 |
---|---|---|
committer | git <[email protected]> | 2025-01-21 03:32:15 +0000 |
commit | e5f81e511f566edaf2ca871aa72dbb0260c242bf (patch) | |
tree | 2b3204ea1eceb9e1a8ef2f991c61be4f662c9723 | |
parent | f33a76bfa93898d32841e972f006fd96bd17a1f9 (diff) |
[ruby/error_highlight] Use `$stderr` instead of STDERR for Ractor
https://github.com/ruby/error_highlight/commit/a221a4b0eb
-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 |