diff --git a/lisp/org.el b/lisp/org.el index 497baa850..57fe046a7 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -20429,7 +20429,7 @@ Respect narrowing." If INVISIBLE-NOT-OK is non-nil, an invisible heading line is not ok." (save-excursion (beginning-of-line) - (and (bolp) (or (not invisible-not-ok) (not (org-fold-folded-p))) + (and (or (not invisible-not-ok) (not (org-fold-folded-p))) (looking-at outline-regexp)))) (defun org-in-commented-heading-p (&optional no-inheritance element)