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:
parent
736bdeb205
commit
f8fb321f2c
1 changed files with 4 additions and 9 deletions
|
@ -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))))
|
||||
(if (integerp level)
|
||||
(hs-hide-level-recursive (1- level) (point-min) (point-max))
|
||||
(hs-hide-all)))))
|
||||
|
||||
(defun +evil--invisible-points (count)
|
||||
(let (points)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue