lang/org: fix org-shifttab only toggling current fold

This commit is contained in:
Henrik Lissner
2018-04-05 17:28:30 -04:00
parent ca9957b6d8
commit b7577f1e26

View File

@ -334,6 +334,7 @@ wrong places)."
"Toggle the local fold at the point (as opposed to cycling through all levels
with `org-cycle')."
(interactive)
(unless (eq this-command 'org-shifttab)
(save-excursion
(org-beginning-of-line)
(cond ((org-at-heading-p)
@ -343,4 +344,4 @@ with `org-cycle')."
t)
((org-in-src-block-p)
(org-babel-remove-result)
t))))
t)))))