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>
This commit is contained in:
Nicolas Goaziou 2015-05-17 19:22:12 +02:00
parent 0e5069f1d3
commit f7173d551d
1 changed files with 1 additions and 1 deletions

View File

@ -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)))))