Browse Source

org-element: Fix af9c0fbf9143883ce31478a137a60cc69428d4d4
* lisp/org-element.el (org-element-at-point): Fix commit
af9c0fbf9143883ce31478a137a60cc69428d4d4.

Nicolas Goaziou 4 years ago
parent
commit
29c33591a2
1 changed files with 1 additions and 0 deletions
  1. 1 0
      lisp/org-element.el

+ 1 - 0
lisp/org-element.el

@@ -4740,6 +4740,7 @@ first element of current section."
 	      ;; belongs to the headline.
 	      (throw 'exit
 		     (progn (skip-chars-backward " \r\t\n")
+			    (beginning-of-line)
 			    (if (not keep-trail)
 				(org-element-headline-parser (point-max) t)
 			      (list (org-element-headline-parser