summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorshugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-05-25 13:53:41 +0000
committershugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-05-25 13:53:41 +0000
commit102d687935a49ac05905648b0cdb4cfca7bedce4 (patch)
tree1102b1d62e185b7d250a8d378e5b7cb5b72119ee /lib
parent6842ac35c8191a7576c23b9b01228f9a6af4d00a (diff)
downloadruby-102d687935a49ac05905648b0cdb4cfca7bedce4.tar.gz
ruby-102d687935a49ac05905648b0cdb4cfca7bedce4.tar.xz
ruby-102d687935a49ac05905648b0cdb4cfca7bedce4.zip
* lib/irb/input-method.rb: do not use Readline::HISTORY.pop.
(backported from HEAD) git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8523 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/irb/input-method.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/irb/input-method.rb b/lib/irb/input-method.rb
index 750add767..bfb90fa59 100644
--- a/lib/irb/input-method.rb
+++ b/lib/irb/input-method.rb
@@ -94,8 +94,8 @@ module IRB
end
def gets
- if l = readline(@prompt, true)
- HISTORY.pop if l.empty?
+ if l = readline(@prompt, false)
+ HISTORY.push(l) if !l.empty?
@line[@line_no += 1] = l + "\n"
else
@eof = true