summaryrefslogtreecommitdiffstats
path: root/lib/irb/input-method.rb
diff options
context:
space:
mode:
authorkeiju <keiju@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-07-09 11:17:17 +0000
committerkeiju <keiju@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-07-09 11:17:17 +0000
commit497c983ec22404888815570ccdd8df4693fa8e20 (patch)
tree326cb343c08c55d2d93fa5223c01f940d3591f8b /lib/irb/input-method.rb
parentdd624bb82c9134a0cc273cb55d9950604823b3fa (diff)
downloadruby-497c983ec22404888815570ccdd8df4693fa8e20.tar.gz
ruby-497c983ec22404888815570ccdd8df4693fa8e20.tar.xz
ruby-497c983ec22404888815570ccdd8df4693fa8e20.zip
* irb 0.9
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2627 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/irb/input-method.rb')
-rw-r--r--lib/irb/input-method.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/irb/input-method.rb b/lib/irb/input-method.rb
index ffbc6d9ed..65a016fd0 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