summaryrefslogtreecommitdiff
path: root/org-fc.el
diff options
context:
space:
mode:
authorLeon Rische <leon.rische@me.com>2020-09-12 23:06:21 +0200
committerLeon Rische <leon.rische@me.com>2020-09-12 23:06:21 +0200
commit46723aa33b5799b61a74a4140a6a7cbe0ce3d077 (patch)
treef5b556b47aa7cd7e29055e60e7299369c6ca9f9f /org-fc.el
parent775c727820acc3fbf07cf8de08370df5142178dc (diff)
Fix `org-fc-member-p`
Diffstat (limited to 'org-fc.el')
-rw-r--r--org-fc.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/org-fc.el b/org-fc.el
index 0925d79..65f09dc 100644
--- a/org-fc.el
+++ b/org-fc.el
@@ -284,7 +284,7 @@ Used to calculate the time needed for reviewing a card.")
(defun org-fc-member-p (path)
"Check if PATH is member of one of the `org-fc-directories'."
(setq path (expand-file-name path))
- (and (string= (file-name-extension file) "org")
+ (and (string= (file-name-extension path) "org")
(cl-some
(lambda (dir) (string-prefix-p (expand-file-name dir) path))
org-fc-directories)))