aboutsummaryrefslogtreecommitdiffstats
path: root/lib/irb/ruby-lex.rb
diff options
context:
space:
mode:
authorkeiju <keiju@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-04-14 09:58:18 +0000
committerkeiju <keiju@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-04-14 09:58:18 +0000
commitce7c263fb621099b1aaed1018e56fd7dd7dee258 (patch)
treec393f23305c8aa2a61374c9d44b4c3d089e406c2 /lib/irb/ruby-lex.rb
parent2ac523a89143f5d39239382e9e60f7d6e63657a0 (diff)
downloadruby-ce7c263fb621099b1aaed1018e56fd7dd7dee258.tar.gz
* lib/irb/ruby-lex.rb, lib/irb/slex.rb: bug fix of [ruby-Bugs-1745]
* lib/irb/ext/loader.rb, lib/irb/ext/save-history.rb: fix location of @RCS_ID * lib/irb/cmd/help.rb: a lost of release IRB 0.9.5. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8329 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/irb/ruby-lex.rb')
-rw-r--r--lib/irb/ruby-lex.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/irb/ruby-lex.rb b/lib/irb/ruby-lex.rb
index 9e055ee94a..4c51afbc28 100644
--- a/lib/irb/ruby-lex.rb
+++ b/lib/irb/ruby-lex.rb
@@ -100,7 +100,8 @@ class RubyLex
def getc
while @rests.empty?
- return nil unless buf_input
+# return nil unless buf_input
+ @rests.push nil unless buf_input
end
c = @rests.shift
if @here_header
@@ -121,7 +122,7 @@ class RubyLex
def gets
l = ""
while c = getc
- l.concat c
+ l.concat(c)
break if c == "\n"
end
return nil if l == "" and c.nil?