summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-10-15 23:13:49 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-10-15 23:16:24 +0900
commitc01df7e58f34eb81bf569614091a4db428c61282 (patch)
tree69d7ab4100f3b84e6c4fed12be540cca60a73eb4
parent81176095f45a5c9f14fc61dfce041735094f893f (diff)
Fixed the key to delete [Bug #16250]
https://github.com/ruby/ruby/commit/f94202fcc228d0348ca050a7b18a8f8a538a7305#commitcomment-35505076 Co-Authored-By: Ary Borenszweig <asterite@gmail.com>
-rw-r--r--lib/irb/color.rb2
1 files changed, 1 insertions, 1 deletions
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+