1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/irb/input-method: patch to irb to remove blank lines from

the readline history buffer.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@1637 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
keiju 2001-07-19 10:22:13 +00:00
parent 78348b0325
commit 1a01378193
2 changed files with 6 additions and 0 deletions

View file

@ -1,3 +1,8 @@
Thu Jul 19 19:16:50 2001 Stephen White <spwhite@chariot.net.au>
* lib/irb/input-method.rb: patch to irb to remove blank lines from
the readline history buffer.
Sun Jul 19 06:01:12 2001 Minero Aoki <aamine@loveruby.net>
* doc/net/smtp.rd.ja, pop.rd.ja, http.rd.ja: new files.

View file

@ -94,6 +94,7 @@ module IRB
def gets
if l = readline(@prompt, true)
HISTORY.pop if l.empty?
@line[@line_no += 1] = l + "\n"
else
@eof = true