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