Browse Source

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.
Bastien Guerry 12 years ago
parent
commit
6671e80453
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lisp/org-crypt.el

+ 1 - 1
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."