branch: elpa/org-drill
commit 7301c9ea7122f94fdc5236d59a2a457dde964d95
Author: Paul Sexton <[email protected]>
Commit: Paul Sexton <[email protected]>
Fixed calculation of 'org-drill-entry-days-since-creation' for cases where
'org-drill-entry-days-overdue' returns NIL.
---
org-drill.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/org-drill.el b/org-drill.el
index 93c37e3c98..b2b47ee306 100755
--- a/org-drill.el
+++ b/org-drill.el
@@ -2,7 +2,7 @@
;;; org-drill.el - Self-testing using spaced repetition
;;;
;;; Author: Paul Sexton <[email protected]>
-;;; Version: 2.4.3
+;;; Version: 2.4.4
;;; Repository at http://bitbucket.org/eeeickythump/org-drill/
;;;
;;;
@@ -2439,7 +2439,7 @@ that many days)."
(timestamp
(- (org-time-stamp-to-now timestamp)))
(use-last-interval-p
- (+ (org-drill-entry-days-overdue)
+ (+ (or (org-drill-entry-days-overdue) 0)
(read (or (org-entry-get (point) "DRILL_LAST_INTERVAL") "0"))))
(t nil))))