diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/irb.rb | 2 | ||||
-rw-r--r-- | lib/irb/ruby-lex.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/irb.rb b/lib/irb.rb index 3f7f169c69..7f99974f28 100644 --- a/lib/irb.rb +++ b/lib/irb.rb @@ -525,7 +525,7 @@ module IRB printf "Use \"exit\" to leave %s\n", @context.ap_name end else - print "\n" + print "\n" if @context.prompting? end end l diff --git a/lib/irb/ruby-lex.rb b/lib/irb/ruby-lex.rb index 7b365a39cf..938e9d42a6 100644 --- a/lib/irb/ruby-lex.rb +++ b/lib/irb/ruby-lex.rb @@ -233,7 +233,7 @@ class RubyLex @line.force_encoding(@io.encoding) yield @line, @exp_line_no end - break if @io.eof? + raise TerminateLineInput if @io.eof? @line = '' @exp_line_no = @line_no |