summaryrefslogtreecommitdiff
path: root/lisp/org/org-crypt.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/org/org-crypt.el')
-rw-r--r--lisp/org/org-crypt.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/org/org-crypt.el b/lisp/org/org-crypt.el
index 9cd76c9eca5..1bdf623e570 100644
--- a/lisp/org/org-crypt.el
+++ b/lisp/org/org-crypt.el
@@ -190,7 +190,7 @@ See `org-crypt-disable-auto-save'."
(error (insert contents) (error (nth 1 err)))))
(when folded
(goto-char start-heading)
- (outline-hide-subtree))
+ (org-flag-subtree t))
nil)))))
(defun org-decrypt-entry ()