Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

REPL use Readline history.

  • Loading branch information...
commit b75f59f3bfb9f202a677f321de910bc8671a9da2 1 parent ecc5d48
@vic authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  lib/typhon/repl.rb
View
3  lib/typhon/repl.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.