diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | lib/irb/input-method.rb | 4 |
2 files changed, 7 insertions, 2 deletions
@@ -1,3 +1,8 @@ +Wed May 25 22:52:42 2005 Shugo Maeda <shugo@ruby-lang.org> + + * lib/irb/input-method.rb: do not use Readline::HISTORY.pop. + (backported from HEAD) + Wed May 25 21:55:40 2005 Shugo Maeda <shugo@ruby-lang.org> * ext/readline/readline.c: supported libedit. (backported from HEAD) diff --git a/lib/irb/input-method.rb b/lib/irb/input-method.rb index 750add767e..bfb90fa59a 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 |