Skip to content

Commit eff2ce8

Browse files
committed
Ignore input while checking all exercises in watch mode
1 parent fd33c29 commit eff2ce8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/watch/state.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,9 @@ impl<'a> WatchState<'a> {
269269
}
270270

271271
pub fn check_all_exercises(&mut self, stdout: &mut StdoutLock) -> Result<ExercisesProgress> {
272+
// Ignore any input until checking all exercises is done.
273+
let _input_pause_guard = InputPauseGuard::scoped_pause();
274+
272275
if let Some(first_pending_exercise_ind) = self.app_state.check_all_exercises(stdout)? {
273276
// Only change exercise if the current one is done.
274277
if self.app_state.current_exercise().done {

0 commit comments

Comments
 (0)