aboutsummaryrefslogtreecommitdiff
path: root/org-drill.el
diff options
context:
space:
mode:
authorPaul Sexton <eeeickythump@gmail.com>2015-08-20 14:11:41 +1200
committerPaul Sexton <eeeickythump@gmail.com>2015-08-20 14:11:41 +1200
commit9c86731452e8f3ac2f62cceb179dcb98c94b94ae (patch)
tree4044405bfe6c2b93f0760d9e9c5c5d8e153cdecf /org-drill.el
parent3f6435d39ae2d5df9577dd7ff301e0839e1ceb92 (diff)
downloadorg-drill-2.4.8.tar.gz
org-drill-2.4.8.zip
During drills, pressing keys for quit, edit and skip now works again.2.4.8
Diffstat (limited to 'org-drill.el')
-rwxr-xr-xorg-drill.el12
1 files changed, 6 insertions, 6 deletions
diff --git a/org-drill.el b/org-drill.el
index a78b806..428e993 100755
--- a/org-drill.el
+++ b/org-drill.el
@@ -4,7 +4,7 @@
;;; Copyright (C) 2010-2015 Paul Sexton
;;;
;;; Author: Paul Sexton <eeeickythump@gmail.com>
-;;; Version: 2.4.7
+;;; Version: 2.4.8
;;; Keywords: flashcards, memory, learning, memorization
;;; Repository at http://bitbucket.org/eeeickythump/org-drill/
;;;
@@ -1574,11 +1574,11 @@ Consider reformulating the item to make it easier to remember.\n"
(if (stringp input) (setq ch (elt input 0)))
(if (eql ch org-drill--tags-key)
(org-set-tags-command)))
- (case ch
- (org-drill--quit-key nil)
- (org-drill--edit-key 'edit)
- (org-drill--skip-key 'skip)
- (otherwise t))))
+ (cond
+ ((eql ch org-drill--quit-key) nil)
+ ((eql ch org-drill--edit-key) 'edit)
+ ((eql ch org-drill--skip-key) 'skip)
+ (t t))))
(defun org-pos-in-regexp (pos regexp &optional nlines)