]> git.cworth.org Git - mnemon/blobdiff - mnemon.c
Don't start mastery session until there are no items unlearned *nor* any to introduce
[mnemon] / mnemon.c
index 1ca0939d6fa9f8cdae19d3c7766b640c500a7ffb..9bdef93f3c4994a87730ab5b324667e2bb13f8c3 100644 (file)
--- a/mnemon.c
+++ b/mnemon.c
@@ -746,7 +746,10 @@ mnemon_handle_response (mnemon_t   *mnemon,
            item->score = 1;
            mnemon->unlearned--;
            printf ("You got it!");
-           if (mnemon->unlearned == 0 && mnemon->to_master == 0) {
+           if (mnemon->to_introduce == 0 &&
+               mnemon->unlearned == 0 &&
+               mnemon->to_master == 0)
+           {
                mnemon->to_master = 10;
                mnemon->mastered = 0;
            }