From af064b04b1622897995fe1177aabfb60db90e6f7 Mon Sep 17 00:00:00 2001 From: keiju Date: Tue, 9 Jul 2002 11:17:17 +0000 Subject: * irb 0.9 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2627 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/irb/input-method.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lib/irb/input-method.rb') diff --git a/lib/irb/input-method.rb b/lib/irb/input-method.rb index ffbc6d9edc..65a016fd07 100644 --- a/lib/irb/input-method.rb +++ b/lib/irb/input-method.rb @@ -1,6 +1,6 @@ # # irb/input-method.rb - input methods using irb -# $Release Version: 0.7.3$ +# $Release Version: 0.9$ # $Revision$ # $Date$ # by Keiju ISHITSUKA(keiju@ishitsuka.com) @@ -74,8 +74,9 @@ module IRB end def gets + print @prompt l = @io.gets - print @prompt, l +# print @prompt, l l end end @@ -94,6 +95,7 @@ module IRB def gets if l = readline(@prompt, true) + HISTORY.pop if l.empty? @line[@line_no += 1] = l + "\n" else @eof = true -- cgit v1.2.3