Steps to reproduce
- Edit the following file with
vim --clean:
/
├── e
│ └── d
│ └── c
│ ├── _a
│ └── _b
└── f
x directories, y files
- source the following vimscript:
let s:fold_results = [ '>1', '>2', '>3', '>4', '4', '<4', '<1', '0', '0' ]
function FoldExpr(lnum)
return s:fold_results[a:lnum-1]
endfunction
set foldmethod=expr foldexpr=FoldExpr(v:lnum)
- observe that line 7 is at level 3
Expected behaviour
<1 should end any higher-level folds and end at level 1.
Version of Vim
9.1.514
Environment
Arch Linux, GNOME Termianl / GTK GUI
Logs and stack traces
No response
Steps to reproduce
vim --clean:Expected behaviour
<1should end any higher-level folds and end at level 1.Version of Vim
9.1.514
Environment
Arch Linux, GNOME Termianl / GTK GUI
Logs and stack traces
No response