diff options
author | Vincent Ambo <mail@tazj.in> | 2022-09-05T02·12+0300 |
---|---|---|
committer | tazjin <tazjin@tvl.su> | 2022-09-10T21·57+0000 |
commit | 8643620eb189ee45fe00b1d0fdca516cdea43d51 (patch) | |
tree | e45bb942e80b7584112b4520a37707a9edb9adc1 /tvix/eval | |
parent | 4e06e5d2baf99de503decfb3cc92240baf455ee4 (diff) |
fix(tvix/eval): always add history entries in REPL r/4788
... even if the code is broken. Change-Id: I5898bceaebf201b97e8988c94c90e7fafff82529 Reviewed-on: https://cl.tvl.fyi/c/depot/+/6462 Tested-by: BuildkiteCI Reviewed-by: sterni <sternenseemann@systemli.org>
Diffstat (limited to 'tvix/eval')
-rw-r--r-- | tvix/eval/src/main.rs | 2 |
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), } |