From d09608aa35090df8a02cc372e9c862566b0169f4 Mon Sep 17 00:00:00 2001 From: Adam Porter Date: Tue, 12 Sep 2023 17:28:31 -0500 Subject: [PATCH] Fix: (org-ql-view--format-element) Check habit in source buffer See #364. --- org-ql-view.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/org-ql-view.el b/org-ql-view.el index bbdada90..c81bcd7a 100644 --- a/org-ql-view.el +++ b/org-ql-view.el @@ -892,7 +892,8 @@ return an empty string." (char-to-string) (format "[#%s]") (org-ql-view--add-priority-face))) - (habit-property (org-with-point-at (org-element-property :begin element) + (habit-property (org-with-point-at (or (org-element-property :org-hd-marker element) + (org-element-property :org-marker element)) (when (org-is-habit-p) (org-habit-parse-todo)))) (due-string (pcase (org-element-property :relative-due-date element)