When using evil-mode in outline-mode or org-mode, attempting to open folded sections (zo) does not work as expected when the cursor is positioned inside a deeply nested header.
Steps to Reproduce:
-
Enable evil-mode.
-
Open an org file or an outline-mode buffer with multiple nested headers, for example:
Level 1
** Level 2
*** Level 3
**** Level 4: A
Some content here
Some content here
Some content here
Some content here
**** Level 4: B
Some content here
Some content here
Some content here
Some content here
**** Level 4: C
Some content here
Some content here < PUT THE CURSOR HERE
Some content here
Some content here
**** Level 4: D
Some content here
Some content here
Some content here
Some content here
Some content here
**** Level 4: E
Some content here
Some content here
Some content here
-
Put the cursor in < PUT THE CURSOR HERE
-
Collapse all folds with zM
-
Press zo to open the fold
-
The folds fail to expand fully in nested hierarchies, leaving all content hidden except for level 4: C.
Environment:
- Emacs version: 30.2
- evil version: 1.14.2
- Operating system: Linux and macOS
When using
evil-modeinoutline-modeororg-mode, attempting to open folded sections (zo) does not work as expected when the cursor is positioned inside a deeply nested header.Steps to Reproduce:
Enable
evil-mode.Open an
orgfile or anoutline-modebuffer with multiple nested headers, for example:Put the cursor in
< PUT THE CURSOR HERECollapse all folds with
zMPress
zoto open the foldThe folds fail to expand fully in nested hierarchies, leaving all content hidden except for
level 4: C.Environment: