summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Dominik <carsten.dominik@gmail.com>2013-04-05 16:44:57 +0200
committerCarsten Dominik <carsten.dominik@gmail.com>2013-04-05 16:44:57 +0200
commita5d6548a57d2313dc4d1352fa9d379315159d2c4 (patch)
tree04f61b5e5c157b7634d529b0a8e4c66c93ef03ce
parent29a75d0473ae45e1639d6dddf06b54eea2027bac (diff)
downloadorg-mode-a5d6548a57d2313dc4d1352fa9d379315159d2c4.tar.gz
Highlight only headline with agenda subtree restriction
* lisp/org-agenda.el (org-agenda-set-restriction-lock): Highlight only the headline when agenda is restricted to a subtree. Do not highlight the entire subtree.
-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 f40d733..e40a56a 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -7069,7 +7069,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 (org-end-of-subtree t t) (point)))
+ (point) (point-at-eol))
(move-marker org-agenda-restrict-begin (point))
(move-marker org-agenda-restrict-end
(save-excursion (org-end-of-subtree t t)))