summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/watch/state.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/watch/state.rs b/src/watch/state.rs
index c27dedf..5263bc5 100644
--- a/src/watch/state.rs
+++ b/src/watch/state.rs
@@ -269,6 +269,9 @@ impl<'a> WatchState<'a> {
}
pub fn check_all_exercises(&mut self, stdout: &mut StdoutLock) -> Result<ExercisesProgress> {
+ // Ignore any input until checking all exercises is done.
+ let _input_pause_guard = InputPauseGuard::scoped_pause();
+
if let Some(first_pending_exercise_ind) = self.app_state.check_all_exercises(stdout)? {
// Only change exercise if the current one is done.
if self.app_state.current_exercise().done {