branch: master commit 4c8058fee983504392f024620fa01ef146197af8 Author: Alex Roper <a...@aroper.net> Commit: al...@productionimage.aroper.net <al...@productionimage.aroper.net>
Step down should not include the headline itself when it has no children. --- org-edna.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/org-edna.el b/org-edna.el index 1cdc52b..edcf66e 100644 --- a/org-edna.el +++ b/org-edna.el @@ -971,8 +971,8 @@ All arguments are symbols, unless noted otherwise. ('step-down (setq targets (org-with-wide-buffer - (org-goto-first-child) - (org-edna-collect-current-level (org-edna-self-marker) nil nil t)))) + (when (org-goto-first-child) + (org-edna-collect-current-level (org-edna-self-marker) nil nil t))))) ('todo-only ;; Remove any entry without a TODO keyword, or with a DONE keyword (cl-pushnew