+evil/fold-toggle: don't hide recursively
Otherwise sub-entries will be folded and remain folded when unfolding entries.
This commit is contained in:
parent
b53b300657
commit
8c4504380f
1 changed files with 4 additions and 1 deletions
|
@ -42,7 +42,10 @@
|
||||||
(save-excursion
|
(save-excursion
|
||||||
(cond ((+evil--vimish-fold-p) (vimish-fold-toggle))
|
(cond ((+evil--vimish-fold-p) (vimish-fold-toggle))
|
||||||
((+evil--hideshow-fold-p) (+evil-from-eol (hs-toggle-hiding)))
|
((+evil--hideshow-fold-p) (+evil-from-eol (hs-toggle-hiding)))
|
||||||
((+evil--outline-fold-p) (outline-toggle-children)))))
|
((+evil--outline-fold-p)
|
||||||
|
(cl-letf (((symbol-function #'outline-hide-subtree)
|
||||||
|
(symbol-function #'outline-hide-entry)))
|
||||||
|
(outline-toggle-children))))))
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun +evil/fold-open ()
|
(defun +evil/fold-open ()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue