forked from mirrors/org-mode
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:
parent
0e5069f1d3
commit
f7173d551d
|
@ -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)))))
|
||||
|
|
Loading…
Reference in a new issue