Browse Source

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 <mejlaandersj@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/97603>
Nicolas Goaziou 10 years ago
parent
commit
f7173d551d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lisp/org-inlinetask.el

+ 1 - 1
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)))))