summaryrefslogtreecommitdiff
path: root/lib/irb/ruby-lex.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/irb/ruby-lex.rb')
-rw-r--r--lib/irb/ruby-lex.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/irb/ruby-lex.rb b/lib/irb/ruby-lex.rb
index ab584d5253..d8442f305b 100644
--- a/lib/irb/ruby-lex.rb
+++ b/lib/irb/ruby-lex.rb
@@ -104,6 +104,7 @@ class RubyLex
@rests.push nil unless buf_input
end
c = @rests.shift
+ return if c == nil
if @here_header
@here_readed.push c
else
@@ -234,7 +235,6 @@ class RubyLex
unless l = lex
throw :TERM_INPUT if @line == ''
else
- #p l
@line.concat l
if @ltype or @continue or @indent > 0
next