diff options
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/main.rs b/src/main.rs index e10a8e3..a82eea6 100644 --- a/src/main.rs +++ b/src/main.rs @@ -142,6 +142,7 @@ impl Session { self.pretty_cwd_res().unwrap_or_else(|_| String::new()) } + // TODO: prompt should be BString as well fn prompt(&self) -> String { #[cfg(debug_assertions)] let dev = "dev "; @@ -346,15 +347,11 @@ impl Session { if !line.is_empty() { let parsed = match parse::do_parse(&line) { Ok(p) => p, - Err((crate::parse::ParseError::Eof, _)) => { + Err(_) => { se.line.add(b'\n'); print!("\r\n> "); return; } - Err(e) => { - println!("{e:?}\n{}", se.prompt()); - return; - } }; print!("\r\n"); let entry = HistoryEntry::new(line.clone()); |
