From 3fd16970f3a6b4d33d6e6397e5570e9ee0e2a368 Mon Sep 17 00:00:00 2001 From: shugo Date: Thu, 19 May 2005 14:36:20 +0000 Subject: * ext/readline/readline.c: supported libedit. fixed: [ruby-core:4858] * ext/readline/extconf.rb: added new option --enable-libedit. * test/readline/test_readline.rb: added assertions for Readline::HISTORY. * lib/irb/input-method.rb: do not use Readline::HISTORY.pop. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8489 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/irb/input-method.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/irb') diff --git a/lib/irb/input-method.rb b/lib/irb/input-method.rb index 750add767e..045bbd169a 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 -- cgit v1.2.3