diff options
Diffstat (limited to 'lib/irb/input-method.rb')
-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 750add767e..045bbd169a 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 |