mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 14:24:45 +00:00
Fix some repl state machine bugs
This commit is contained in:
parent
f11b2d21cb
commit
6038965cb6
3 changed files with 69 additions and 46 deletions
|
@ -38,9 +38,7 @@ pub fn main() -> i32 {
|
|||
editor.set_helper(Some(repl_helper));
|
||||
|
||||
loop {
|
||||
let readline = editor.readline(PROMPT);
|
||||
|
||||
match readline {
|
||||
match editor.readline(PROMPT) {
|
||||
Ok(line) => {
|
||||
let trim_line = line.trim();
|
||||
editor.add_history_entry(trim_line);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue