]> git.cworth.org Git - mnemon/commitdiff
Don't start mastery session until there are no items unlearned *nor* any to introduce
authorCarl Worth <cworth@cworth.org>
Mon, 14 May 2007 21:02:24 +0000 (14:02 -0700)
committerCarl Worth <cworth@cworth.org>
Mon, 14 May 2007 21:02:24 +0000 (14:02 -0700)
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!");
            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;
            }
                mnemon->to_master = 10;
                mnemon->mastered = 0;
            }