Fix display bug when inserting a heading
commitf2e5920f4107e47b297b0c34c64369ccd9cc026f
authorNicolas Goaziou <mail@nicolasgoaziou.fr>
Thu, 16 Mar 2017 12:01:39 +0000 (16 13:01 +0100)
committerNicolas Goaziou <mail@nicolasgoaziou.fr>
Thu, 16 Mar 2017 12:01:39 +0000 (16 13:01 +0100)
tree3de13aa51de05ac4e63a398aea524d3c2de1ce00
parente1cd71532f8ff1a5ac0becce29912d0770c76461
Fix display bug when inserting a heading

* lisp/org.el (org-N-empty-lines-before-current): Do not hide newline
  character before current headline.

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

Reported-by: Rick Frankel <rick@rickster.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/112751>
lisp/org.el
testing/lisp/test-org.el