From 8cf47d14abdc9e3462fd40d0c2a5cfe3b78f77a3 Mon Sep 17 00:00:00 2001 From: matz Date: Fri, 1 Sep 2006 04:15:45 +0000 Subject: * lib/irb/ruby-lex.rb (RubyLex::getc): should not push nil into reading buffer (@readed). reported in . git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10817 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/irb/ruby-lex.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/irb') 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 -- cgit v1.2.3