branch: externals/org
commit c6d4c9344c57ed45eee9f7bf563751330d9e13b4
Merge: 78e39d5 8544f55
Author: Bastien <b...@gnu.org>
Commit: Bastien <b...@gnu.org>

    Merge branch 'maint'
---
 lisp/org-inlinetask.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lisp/org-inlinetask.el b/lisp/org-inlinetask.el
index 79146d2..f19353b 100644
--- a/lisp/org-inlinetask.el
+++ b/lisp/org-inlinetask.el
@@ -238,7 +238,7 @@ going below `org-inlinetask-min-level'."
          (setq beg (point))
          (replace-match down-task nil t nil 1)
          (org-inlinetask-goto-end)
-         (if (and (eobp) (looking-back "END\\s-*"))
+         (if (and (eobp) (looking-back "END\\s-*" (point-at-bol)))
               (beginning-of-line)
             (forward-line -1))
          (unless (= (point) beg)
@@ -264,7 +264,7 @@ If the task has an end part, also demote it."
        (setq beg (point))
        (replace-match down-task nil t nil 1)
        (org-inlinetask-goto-end)
-        (if (and (eobp) (looking-back "END\\s-*"))
+        (if (and (eobp) (looking-back "END\\s-*" (point-at-bol)))
               (beginning-of-line)
             (forward-line -1))
        (unless (= (point) beg)

Reply via email to