diff options
| author | shugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-05-19 14:36:20 +0000 |
|---|---|---|
| committer | shugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-05-19 14:36:20 +0000 |
| commit | 1cbf0578a9eb307624daaf0c50b2787d718bb8a5 (patch) | |
| tree | ff3d78948cc7bd6f6ec4240244872dfed5041cb7 /lib/irb | |
| parent | fd52599a4688a79667112034bed2b568a8325e62 (diff) | |
| download | ruby-1cbf0578a9eb307624daaf0c50b2787d718bb8a5.tar.gz ruby-1cbf0578a9eb307624daaf0c50b2787d718bb8a5.tar.xz ruby-1cbf0578a9eb307624daaf0c50b2787d718bb8a5.zip | |
* 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: http://svn.ruby-lang.org/repos/ruby/trunk@8489 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/irb')
| -rw-r--r-- | lib/irb/input-method.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/irb/input-method.rb b/lib/irb/input-method.rb index 750add767..045bbd169 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 |
