ruby-changes:58867
From: Y. <ko1@a...>
Date: Thu, 21 Nov 2019 02:46:19 +0900 (JST)
Subject: [ruby-changes:58867] 04d0d93ebf (master): Fix filter_backtrace for context-mode 0
https://git.ruby-lang.org/ruby.git/commit/?id=04d0d93ebf From 04d0d93ebf8692170218fa9d55216aaca74be30b Mon Sep 17 00:00:00 2001 From: "Y. Ushiki" <citrus.yubeshi@g...> Date: Wed, 30 Oct 2019 08:43:19 +0900 Subject: Fix filter_backtrace for context-mode 0 diff --git a/lib/irb/workspace.rb b/lib/irb/workspace.rb index 54e37c9..7372fb3 100644 --- a/lib/irb/workspace.rb +++ b/lib/irb/workspace.rb @@ -126,7 +126,8 @@ EOF https://github.com/ruby/ruby/blob/trunk/lib/irb/workspace.rb#L126 def filter_backtrace(bt) case IRB.conf[:CONTEXT_MODE] when 0 - return nil if bt =~ /\(irb_local_binding\)/ + return nil if bt =~ /irb\/.*\.rb/ + return nil if bt =~ /irb\.rb/ when 1 if(bt =~ %r!/tmp/irb-binding! or bt =~ %r!irb/.*\.rb! or -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/