From 70049604343b5f7abe81ff600a368839459e1ddd Mon Sep 17 00:00:00 2001 From: greg Date: Mon, 23 Apr 2018 19:03:32 -0700 Subject: [PATCH] Fix history adding --- schala-repl/src/lib.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/schala-repl/src/lib.rs b/schala-repl/src/lib.rs index db6552f..71235d8 100644 --- a/schala-repl/src/lib.rs +++ b/schala-repl/src/lib.rs @@ -191,7 +191,10 @@ impl Repl { Ok(ref input) => { let output = match input.chars().nth(0) { Some(ch) if ch == self.interpreter_directive_sigil => self.handle_interpreter_directive(input), - _ => Some(self.input_handler(input)), + _ => { + self.console.get_history().add(input); + Some(self.input_handler(input)) + } }; if let Some(o) = output { println!("=> {}", o);