summaryrefslogtreecommitdiff
path: root/lib/irb.rb
diff options
context:
space:
mode:
authoraycabta <aycabta@gmail.com>2020-09-19 04:25:59 +0900
committeraycabta <aycabta@gmail.com>2020-09-19 05:13:08 +0900
commit555ea8334451c5ccd881e68b8b7ddc15745e66e3 (patch)
tree13ace7815499c910b2ff719d44a3f1fd4a83c071 /lib/irb.rb
parent7d9b4d3c61b090398b01ca66952eabc3aa22ca38 (diff)
[ruby/irb] Drop OMIT_ON_ASSIGNMENT and add :truncate option for ECHO_ON_ASSIGNMENT
https://github.com/ruby/irb/commit/4c89b0775b
Diffstat (limited to 'lib/irb.rb')
-rw-r--r--lib/irb.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/irb.rb b/lib/irb.rb
index d8e1209..bdf14f4 100644
--- a/lib/irb.rb
+++ b/lib/irb.rb
@@ -542,7 +542,7 @@ module IRB
if @context.echo?
if assignment_expression?(line)
if @context.echo_on_assignment?
- output_value(@context.omit_on_assignment?)
+ output_value(@context.echo_on_assignment? == :truncate)
end
else
output_value