diff options
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 |