org-crypt: fix decrypt outline display bug
commit86bb47fcaca614b79f8c47970e7d05e9419a13c3
authorJulien Danjou <julien@danjou.info>
Wed, 26 Jan 2011 17:46:29 +0000 (26 17:46 +0000)
committerBastien Guerry <bzg@altern.org>
Tue, 1 Feb 2011 11:53:59 +0000 (1 12:53 +0100)
tree49f731db697bc06c12343c007fb7e0b6cccb51a4
parentbf46c32aade97ad1272369f84d7930f74a2608e0
org-crypt: fix decrypt outline display bug

* org-crypt.el (org-decrypt-entry): Delete \n on top level heading.
This avoids a display bug showing the heading outlined where the text
is not since it does not have the outline property.
Restore subtree visibility state after decryption.

Cc: John Wiegley <johnw@gnu.org>
Cc: Peter Jones <pjones@pmade.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
lisp/org-crypt.el