about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--tvix/eval/src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tvix/eval/src/main.rs b/tvix/eval/src/main.rs
index 6383ed2bf8fc..177d4f2ec8e6 100644
--- a/tvix/eval/src/main.rs
+++ b/tvix/eval/src/main.rs
@@ -62,10 +62,10 @@ fn run_prompt() {
                     continue;
                 }
 
+                rl.add_history_entry(&line);
                 match tvix_eval::interpret(&line, None) {
                     Ok(result) => {
                         println!("=> {} :: {}", result, result.type_of());
-                        rl.add_history_entry(line);
                     }
                     Err(err) => println!("{}", err),
                 }