Fix splitting headlines with RET
commit4dc79cbe9d0a4403d590ffda2480df31009f5d6f
authorNicolas Goaziou <mail@nicolasgoaziou.fr>
Thu, 13 Aug 2015 00:23:40 +0000 (13 02:23 +0200)
committerNicolas Goaziou <mail@nicolasgoaziou.fr>
Thu, 13 Aug 2015 00:42:08 +0000 (13 02:42 +0200)
tree603e45028cb8ef6e6bd3660fd2e0ff4e877e9f05
parent997a9a45d96e8f464cde2665e6dc3d62b71efabb
Fix splitting headlines with RET

* lisp/org.el (org-return): Make sure to keep headline from being
  invalidated by restricting positions where it can be split.

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