diff options
author | keiju <keiju@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-07-09 11:17:17 +0000 |
---|---|---|
committer | keiju <keiju@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-07-09 11:17:17 +0000 |
commit | af064b04b1622897995fe1177aabfb60db90e6f7 (patch) | |
tree | 326cb343c08c55d2d93fa5223c01f940d3591f8b /lib/irb/input-method.rb | |
parent | 93602810e93b5da1c7161fb4b5c1a4025434a9ce (diff) | |
download | ruby-af064b04b1622897995fe1177aabfb60db90e6f7.tar.gz |
* irb 0.9
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2627 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/irb/input-method.rb')
-rw-r--r-- | lib/irb/input-method.rb | 6 |
1 files changed, 4 insertions, 2 deletions
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 |