Skip to content

Commit

Permalink
Handle program ended event
Browse files Browse the repository at this point in the history
  • Loading branch information
simonrw committed Jan 25, 2025
1 parent 05f1b1d commit 001a39f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion repl/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,10 @@ impl App {
println!("program running");
self.program_description = None;
}
debugger::Event::Ended => todo!(),
debugger::Event::Ended => {
println!("program completed");
return Ok(ShouldQuit::True);
}
}
Ok(ShouldQuit::False)
}
Expand Down

0 comments on commit 001a39f

Please sign in to comment.