Permalink
Browse files

REPL use Readline history.

  • Loading branch information...
1 parent ecc5d48 commit b75f59f3bfb9f202a677f321de910bc8671a9da2 @vic committed Dec 24, 2010
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/typhon/repl.rb
View
@@ -30,7 +30,8 @@ def bnd.bnd; binding; end
lineno = 1
level = 1
header
- while line = Readline.readline(prompt(lineno, level), @show_lineno)
+ while line = Readline.readline(prompt(lineno, level, @show_lineno), true)
+
Readline::HISTORY.pop() if double_or_empty?(line)
begin

0 comments on commit b75f59f

Please sign in to comment.