Remove outline support from +evil/fold-close-all

It is buggy in modes with a poorly written outline-level function (like
elisp).
This commit is contained in:
Henrik Lissner 2018-09-22 10:34:31 -04:00
parent 736bdeb205
commit f8fb321f2c
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -87,15 +87,10 @@
(save-excursion
(when (featurep 'vimish-fold)
(vimish-fold-refold-all))
(if (integerp level)
(progn
(when (fboundp 'outline-hide-sublevels)
(outline-hide-sublevels (max 1 (1- level))))
(hs-life-goes-on
(hs-hide-level-recursive (1- level) (point-min) (point-max))))
(when (fboundp 'outline-hide-sublevels)
(outline-hide-sublevels 1))
(hs-hide-all))))
(hs-life-goes-on
(if (integerp level)
(hs-hide-level-recursive (1- level) (point-min) (point-max))
(hs-hide-all)))))
(defun +evil--invisible-points (count)
(let (points)