From c01df7e58f34eb81bf569614091a4db428c61282 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada 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 --- lib/irb/color.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/irb/color.rb b/lib/irb/color.rb index 0198838c6d..7a1d0c30ce 100644 --- a/lib/irb/color.rb +++ b/lib/irb/color.rb @@ -141,7 +141,7 @@ module IRB # :nodoc: 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 v1.2.3