diff options
author | Bastien Guerry <bzg@altern.org> | 2012-12-25 03:29:17 +0100 |
---|---|---|
committer | Bastien Guerry <bzg@altern.org> | 2012-12-25 03:29:17 +0100 |
commit | 6671e80453590ec82ec18c1343ce4829f523af2d (patch) | |
tree | 95d0b4335575dab0917d72ae0477eeb4aff7e75e | |
parent | 1b4e396b6b2b015b67784eca7f046e177208c4b3 (diff) | |
download | org-mode-6671e80453590ec82ec18c1343ce4829f523af2d.tar.gz |
org-crypt.el (org-at-encrypted-entry-p): Fix search boundary
* org-crypt.el (org-at-encrypted-entry-p): Fix search
boundary.
Thanks to Samuel Wales for reporting this bug.
-rw-r--r-- | lisp/org-crypt.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/org-crypt.el b/lisp/org-crypt.el index a187d2f..00c2d8c 100644 --- a/lisp/org-crypt.el +++ b/lisp/org-crypt.el @@ -258,7 +258,7 @@ See `org-crypt-disable-auto-save'." (save-excursion (org-back-to-heading t) (search-forward "-----BEGIN PGP MESSAGE-----" - (save-excursion (org-end-of-subtree t)) t)))) + (save-excursion (outline-next-heading)) t)))) (defun org-crypt-use-before-save-magic () "Add a hook to automatically encrypt entries before a file is saved to disk." |