diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | lib/irb/ruby-lex.rb | 1 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,9 @@ +Sun Apr 11 14:44:45 2010 Yusuke Endoh <mame@tsg.ne.jp> + + * lib/irb/ruby-lex.rb (RubyLex#getc): revert r10817, which caused + regression for handling case when there is no newline at the end of + file. [ruby-core:28248] + Sun Apr 11 12:08:49 2010 Nobuyoshi Nakada <nobu@ruby-lang.org> * encoding.c (enc_replicate): new encoding name must be valid diff --git a/lib/irb/ruby-lex.rb b/lib/irb/ruby-lex.rb index 5a6c2894fb..37261bb79c 100644 --- a/lib/irb/ruby-lex.rb +++ b/lib/irb/ruby-lex.rb @@ -103,7 +103,6 @@ class RubyLex @rests.push nil unless buf_input end c = @rests.shift - return if c == nil if @here_header @here_readed.push c else |