summaryrefslogtreecommitdiff
path: root/src/run.rs
diff options
context:
space:
mode:
authormo8it <mo8it@proton.me>2024-09-05 17:32:59 +0200
committermo8it <mo8it@proton.me>2024-09-05 17:32:59 +0200
commitdcad002057acfb1a41513fb421275116ea946ca3 (patch)
treec8e11f7584ad1c1d3f04a99d410435fe374e21c8 /src/run.rs
parent51b8d2ab2542eb6115bbfdbe7a404993dfcd0749 (diff)
Only render when needed
Diffstat (limited to 'src/run.rs')
-rw-r--r--src/run.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/run.rs b/src/run.rs
index f0faa69..a969164 100644
--- a/src/run.rs
+++ b/src/run.rs
@@ -45,7 +45,7 @@ pub fn run(app_state: &mut AppState) -> Result<()> {
}
match app_state.done_current_exercise(&mut stdout)? {
- ExercisesProgress::CurrentPending | ExercisesProgress::NewPending => {
+ ExercisesProgress::NewPending | ExercisesProgress::CurrentPending => {
stdout.write_all(b"Next exercise: ")?;
app_state
.current_exercise()