ruby-changes:58257
From: Nobuyoshi <ko1@a...>
Date: Tue, 15 Oct 2019 23:16:54 +0900 (JST)
Subject: [ruby-changes:58257] c01df7e58f (master): Fixed the key to delete [Bug #16250]
https://git.ruby-lang.org/ruby.git/commit/?id=c01df7e58f From c01df7e58f34eb81bf569614091a4db428c61282 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Tue, 15 Oct 2019 23:13:49 +0900 Subject: Fixed the key to delete [Bug #16250] https://github.com/ruby/ruby/commit/f94202fcc228d0348ca050a7b18a8f8a538a7305#commitcomment-35505076 Co-Authored-By: Ary Borenszweig <asterite@g...> diff --git a/lib/irb/color.rb b/lib/irb/color.rb index 0198838..7a1d0c3 100644 --- a/lib/irb/color.rb +++ b/lib/irb/color.rb @@ -141,7 +141,7 @@ module IRB # :nodoc: https://github.com/ruby/ruby/blob/trunk/lib/irb/color.rb#L141 seen[obj] = true block.call ensure - seen.delete(obj.object_id) + seen.delete(obj) end # Ripper::Lexer::Elem#state is supported on Ruby 2.5+ -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/