From 46723aa33b5799b61a74a4140a6a7cbe0ce3d077 Mon Sep 17 00:00:00 2001 From: Leon Rische Date: Sat, 12 Sep 2020 23:06:21 +0200 Subject: Fix `org-fc-member-p` --- org-fc.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'org-fc.el') 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))) -- cgit v1.2.3