Christian Brabandt wrote:
> I am currently writing some tests for normal.c, to increase the coverage.
>
> Unfortunately, I noteiced some bugs with folding: Here is one issue:
>
> ~$ vim -u NONE -N
> call setline(1, range(1,10)
> :3
> norm! 2zF
> :2
> norm! 5zF
> :set nofoldenable
> :3
> norm! zc -> folds line 2 - 8, I would have expected to only close the inner
> fold 3-4, but perhaps that is expected, but see below:
> set nofoldenable
> norm! Vzc -> correctly folds 3-4
> :set nofoldenable
> norm! zc -> folds lines 3-4?
Isn't this because 'foldlevel' keeps the same value when 'foldenable' is
reset?
> Also I got another session, where zF create one additional closing
> fold marker several lines below where it definitly shouldn't.
> Unfortunately, I can't reproduce this problem anymore.
The rules for opening a closing folds are a bit complicated...
It's possible there is a bug, but it's also possible that something is
missing in the documentation. I notice "zc" doesn't say anything about
'foldlevel'.
--
hundred-and-one symptoms of being an internet addict:
97. Your mother tells you to remember something, and you look for
a File/Save command.
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.