summaryrefslogtreecommitdiff
path: root/lib/irb.rb
diff options
context:
space:
mode:
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 de5af30..e73174e 100644
--- a/lib/irb.rb
+++ b/lib/irb.rb
@@ -738,7 +738,7 @@ module IRB
def output_value # :nodoc:
str = @context.inspect_last_value
- multiline_p = /\A.*\Z/ !~ str
+ multiline_p = str.include?("\n")
if multiline_p && @context.newline_before_multiline_output?
printf @context.return_format, "\n#{str}"
else