Browse Source

Fix commit 011f1c6

Bastien 7 years ago
parent
commit
f2af4a37a6
1 changed files with 3 additions and 1 deletions
  1. 3 1
      lisp/org-agenda.el

+ 3 - 1
lisp/org-agenda.el

@@ -7134,7 +7134,9 @@ subtree."
   (interactive "P")
   (if (and org-agenda-overriding-restriction
 	   (member org-agenda-restriction-lock-overlay
-		   (overlays-at (point))))
+		   (overlays-at (point)))
+	   (equal (overlay-start org-agenda-restriction-lock-overlay)
+		  (point)))
       (org-agenda-remove-restriction-lock 'noupdate)
     (org-agenda-remove-restriction-lock 'noupdate)
     (and (equal type '(4)) (setq type 'file))