Browse Source

Fix error when auto filling

* lisp/org.el (org-adaptive-fill-function): All elements do not have
  a :post-affiliated property.
Nicolas Goaziou 5 years ago
parent
commit
86f2731125
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lisp/org.el

+ 1 - 1
lisp/org.el

@@ -21221,7 +21221,7 @@ meant to be filled."
 				     (org-element-at-point)))
 	    (type (org-element-type element))
 	    (post-affiliated (org-element-property :post-affiliated element)))
-       (unless (< p post-affiliated)
+       (unless (and post-affiliated (< p post-affiliated))
 	 (case type
 	   (comment (looking-at "[ \t]*# ?") (match-string 0))
 	   (footnote-definition "")