summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorkeiju <keiju@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-07-19 10:22:13 +0000
committerkeiju <keiju@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-07-19 10:22:13 +0000
commit1a01378193cb2ff6f49e743be8d0c000f713b2dc (patch)
tree9a85bb1c37b44f162f4423f827149867be6f71f8 /lib
parent78348b032507da58ea3a58f42b85908d799fe9d1 (diff)
* 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
Diffstat (limited to 'lib')
-rw-r--r--lib/irb/input-method.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/irb/input-method.rb b/lib/irb/input-method.rb
index ffbc6d9edc..0ff0779283 100644
--- a/lib/irb/input-method.rb
+++ b/lib/irb/input-method.rb
@@ -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