summaryrefslogtreecommitdiff
path: root/lib/irb.rb
diff options
context:
space:
mode:
authoraycabta <aycabta@gmail.com>2021-01-08 04:51:28 +0900
committeraycabta <aycabta@gmail.com>2021-01-08 13:25:18 +0900
commit111fddd5437c0d2d6755f8aa474da4b54f89bc44 (patch)
tree1f0bc6b821f4e1489a628559347fa7249ff202c9 /lib/irb.rb
parent917050220a1fd41bdb3e50ea54a200b0c285bcd4 (diff)
[ruby/irb] Fix BACK_TRACE_LIMIT logic
https://github.com/ruby/irb/commit/30dc5d43fe
Diffstat (limited to 'lib/irb.rb')
-rw-r--r--lib/irb.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/irb.rb b/lib/irb.rb
index c7563d1..db1b98e 100644
--- a/lib/irb.rb
+++ b/lib/irb.rb
@@ -640,8 +640,8 @@ module IRB
lines = lines.map { |l| @context.workspace.filter_backtrace(l) }.compact
if lines.size > @context.back_trace_limit
omit = lines.size - @context.back_trace_limit
- lines[0..(@context.back_trace_limit - 1)]
- lines << '... %d levels...' % omit
+ lines = lines[0..(@context.back_trace_limit - 1)]
+ lines << "\t... %d levels..." % omit
end
end
lines = lines.reverse if order == :bottom