org: Small simplification

This commit is contained in:
Marco Wahl 2022-02-04 11:49:15 +01:00
parent e7ea951ac9
commit 1f78ca45f8
1 changed files with 2 additions and 3 deletions

View File

@ -13601,9 +13601,8 @@ drawer is immediately hidden."
(org-with-limited-levels (org-back-to-heading-or-point-min t)))
(if (org-before-first-heading-p)
(while (and (org-at-comment-p) (bolp)) (forward-line))
(progn
(forward-line)
(when (looking-at-p org-planning-line-re) (forward-line))))
(forward-line)
(when (looking-at-p org-planning-line-re) (forward-line)))
(unless (looking-at-p org-property-drawer-re)
;; Make sure we start editing a line from current entry, not from
;; next one. It prevents extending text properties or overlays