diff options
author | aycabta <aycabta@gmail.com> | 2019-05-27 10:18:09 +0900 |
---|---|---|
committer | aycabta <aycabta@gmail.com> | 2019-05-27 10:18:09 +0900 |
commit | 9840f52c77a928479919e539d2e47ce36b5ede49 (patch) | |
tree | 6cef0f5ca1a9a37f5e642791fd80ec2a4eef4586 /lib/irb/ruby-lex.rb | |
parent | 1d301acbe8e9b0df7872d6719d6646ade25630d6 (diff) | |
download | ruby-9840f52c77a928479919e539d2e47ce36b5ede49.tar.gz |
Use IRB::InputMethod#eof? to quit
Diffstat (limited to 'lib/irb/ruby-lex.rb')
-rw-r--r-- | lib/irb/ruby-lex.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/irb/ruby-lex.rb b/lib/irb/ruby-lex.rb index ea2158b8b2..a14ac8a275 100644 --- a/lib/irb/ruby-lex.rb +++ b/lib/irb/ruby-lex.rb @@ -98,7 +98,7 @@ class RubyLex @line.force_encoding(@io.encoding) yield @line, @exp_line_no end - break unless l + break if @io.eof? @line = '' @exp_line_no = @line_no |