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