Drop pending_src, fix repl tips

This commit is contained in:
Richard Feldman 2022-10-27 06:11:37 -04:00
parent 6038965cb6
commit 5b36d2c41c
No known key found for this signature in database
GPG key ID: F1F21AA5B1D9E43B
3 changed files with 34 additions and 67 deletions

View file

@ -40,12 +40,11 @@ pub fn main() -> i32 {
loop {
match editor.readline(PROMPT) {
Ok(line) => {
let trim_line = line.trim();
editor.add_history_entry(trim_line);
editor.add_history_entry(line.trim());
let repl_helper = editor.helper_mut().expect("Editor helper was not set");
match repl_helper.step(trim_line) {
match repl_helper.step(&line) {
Ok(output) => {
// If there was no output, don't print a blank line!
// (This happens for something like a type annotation.)