Make sure narrowing to subtree does not swallow headings
commit4fc5ac29c6eb552d721b6fc5d665ea6678c1b92c
authorCarsten Dominik <carsten.dominik@gmail.com>
Fri, 22 Jan 2010 10:21:55 +0000 (22 11:21 +0100)
committerCarsten Dominik <carsten.dominik@gmail.com>
Fri, 22 Jan 2010 10:28:37 +0000 (22 11:28 +0100)
tree5e20ae1186ab2451a4c993ba41ba8a9ee0095304
parent2e53d9b137e8e96efbdff2daf256bab3635d9f9f
Make sure narrowing to subtree does not swallow headings

Jan Böcker writes:

> Consider the following situation:
>
> * A
>  Some text.
> * B
>
> - Place the cursor on A, press C-x n w (org-narrow-to-subtree).
> - Go to the very end of the buffer and insert "xyz".
> - C-x n w (widen).
>
> You end up with:
>
> * A
>  Some Text
> xyz* B
lisp/ChangeLog
lisp/org.el