From f7173d551d63f37a8c4431dec5e300badbb82c24 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Sun, 17 May 2015 19:22:12 +0200 Subject: [PATCH] org-inlinetask: Fix visibility toggling * lisp/org-inlinetask.el (org-inlinetask-toggle-visibility): Fix visibility toggling when starting with a link. Reported-by: Anders Johansson --- lisp/org-inlinetask.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/org-inlinetask.el b/lisp/org-inlinetask.el index 887f75ea6..75654b471 100644 --- a/lisp/org-inlinetask.el +++ b/lisp/org-inlinetask.el @@ -314,7 +314,7 @@ If the task has an end part, also demote it." ;; Nothing to show/hide. ((= end start)) ;; Inlinetask was folded: expand it. - ((get-char-property (1+ start) 'invisible) + ((eq (get-char-property (1+ start) 'invisible) 'outline) (outline-flag-region start end nil) (org-cycle-hide-drawers 'children)) (t (outline-flag-region start end t)))))