Skip to content

Commit fb32761

Browse files
authored
Merge pull request #1753 from danieltinazzi/main
Fix progress bar
2 parents 02b1b5f + 3181d9f commit fb32761

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/main.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,10 @@ fn watch(
362362
.iter()
363363
.filter(|e| !e.looks_done() && !filepath.ends_with(&e.path)),
364364
);
365-
let num_done = exercises.iter().filter(|e| e.looks_done()).count();
365+
let num_done = exercises
366+
.iter()
367+
.filter(|e| e.looks_done() && !filepath.ends_with(&e.path))
368+
.count();
366369
clear_screen();
367370
match verify(
368371
pending_exercises,

0 commit comments

Comments
 (0)