diff options
author | st0012 <stan001212@gmail.com> | 2022-06-28 14:47:28 +0100 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2022-06-28 22:57:17 +0900 |
commit | 7d211c93af2253c5f5a4eb988a362f3220965980 (patch) | |
tree | 1557538548ee5e2b0cde147a367b1e00bff07b66 /lex.c.blt | |
parent | 44c1316293f80abaa0e76b3818322544b9372a97 (diff) | |
download | ruby-7d211c93af2253c5f5a4eb988a362f3220965980.tar.gz |
[ruby/irb] Color.colorable? needs to consider the condition when irb is not loaded
ruby/debug uses `irb/color` selectively:
https://github.com/ruby/debug/blob/0ac22406bb8f65bc76f9f5576a00c729cac693af/lib/debug/color.rb#L4
And in that case, `IRB.conf` won't be defined. So Color.colorable? needs
to consider that.
This also fixes the Ruby trunk CI.
https://github.com/ruby/irb/commit/b2cd07e795
Diffstat (limited to 'lex.c.blt')
0 files changed, 0 insertions, 0 deletions