We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89c40ba commit 4e4b657Copy full SHA for 4e4b657
src/watch/state.rs
@@ -100,14 +100,10 @@ impl<'a> WatchState<'a> {
100
exercise_ind: usize,
101
stdout: &mut StdoutLock,
102
) -> Result<()> {
103
- // Don't skip exercises on file changes to avoid confusion from missing exercises.
104
- // Skipping exercises must be explicit in the interactive list.
105
- // But going back to an earlier exercise on file change is fine.
106
- if self.app_state.current_exercise_ind() < exercise_ind {
+ if self.app_state.current_exercise_ind() != exercise_ind {
107
return Ok(());
108
}
109
110
- self.app_state.set_current_exercise_ind(exercise_ind)?;
111
self.run_current_exercise(stdout)
112
113
0 commit comments