Fix `org-backward-paragraph' on an empty heading
commitfb403ca34ee87118683d4f5a64f0caac0168d95c
authorNicolas Goaziou <mail@nicolasgoaziou.fr>
Fri, 6 Oct 2017 17:34:28 +0000 (6 19:34 +0200)
committerNicolas Goaziou <mail@nicolasgoaziou.fr>
Fri, 6 Oct 2017 17:34:28 +0000 (6 19:34 +0200)
tree8cecc51d0592172879f8574364d1fe7fc36cb48f
parentce536f637554c630ae81598bca2481c01fa3d697
Fix `org-backward-paragraph' on an empty heading

* lisp/org.el (org-backward-paragraph): Fix behavior on greater
  elements without contents.

* testing/lisp/test-org.el (test-org/backward-paragraph): Add test.

Reported-by: Omar Antolin <omar.antolin@gmail.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-10/msg00099.html>
lisp/org.el
testing/lisp/test-org.el