diff options
author | Thanos Apollo <[email protected]> | 2024-01-15 09:54:34 +0200 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2024-01-15 09:54:34 +0200 |
commit | f900b02d4e3760f16cb2189138def13414bd32e6 (patch) | |
tree | de4c1517d02af13e27cda2ad8aa5a57062a04bd1 /gnosis.el | |
parent | 8ca53e1a0e7f1cde295b2aab29893439be07a89a (diff) | |
parent | bafe2bf8d25d39f8c6dd49da3898bdf998a7854f (diff) |
Merge branch '#fix-review-y-or-n' for version 0.1.1
- Fix review of y-or-n type
Diffstat (limited to 'gnosis.el')
-rw-r--r-- | gnosis.el | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -933,7 +933,7 @@ SUCCESS is a binary value, 1 is for successful review." (gnosis-review--update id (if success 1 0)) (gnosis-display--next-review id))) -(defun gnosis-review-y-or-p (id) +(defun gnosis-review-y-or-n (id) "Review y-or-n type note for ID." (gnosis-display--image id) (gnosis-display--question id) @@ -941,7 +941,7 @@ SUCCESS is a binary value, 1 is for successful review." (let* ((answer (gnosis-get 'answer 'notes `(= id ,id))) (user-input (read-char-choice "[y]es or [n]o: " '(?y ?n))) (success (equal answer user-input))) - (gnosis-display-y-or-n-answer :answer answer :success success :user-input user-input) + (gnosis-display-y-or-n-answer :answer answer :success success) (gnosis-display--extra id) (gnosis-review--update id (if success 1 0)) (gnosis-display--next-review id))) @@ -999,7 +999,7 @@ Used to reveal all clozes left with `gnosis-face-cloze-unanswered' face." ("mcq" (gnosis-review-mcq id)) ("basic" (gnosis-review-basic id)) ("cloze" (gnosis-review-cloze id)) - ("y-or-n" (gnosis-review-y-or-p id)) + ("y-or-n" (gnosis-review-y-or-n id)) (_ (error "Malformed note type"))))))) (defun gnosis-review-commit (note-num) |