summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Guerry <bzg@altern.org>2013-02-19 09:41:40 +0100
committerBastien Guerry <bzg@altern.org>2013-02-19 09:41:40 +0100
commit33d362788e01b2925fcbdee4bd28309b0fe9f3b2 (patch)
treec78a2c0b0eeab741c42a184e393c3f6cfb5c49ae
parent27da9a2a0f8ced9b602bf8df064ca7249d862e68 (diff)
downloadorg-mode-33d362788e01b2925fcbdee4bd28309b0fe9f3b2.tar.gz
Fix commit aa0e0068.
-rw-r--r--lisp/org-agenda.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index 3f86d82..86b6e09 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -7165,7 +7165,7 @@ in the file. Otherwise, restriction will be to the current subtree."
(list (buffer-file-name (buffer-base-buffer))))
(org-back-to-heading t)
(move-overlay org-agenda-restriction-lock-overlay
- (point) (save-excursion (outline-next-heading) (point)))
+ (point) (save-excursion (org-end-of-subtree t) (point)))
(move-marker org-agenda-restrict-begin (point))
(move-marker org-agenda-restrict-end
(save-excursion (org-end-of-subtree t)))