On 2016-03-31 20:53:34 +0000, Nicola said:
> The following foldexpr is giving me headaches because it doesn't work
> under all circumstances:
>
>
> fun! s:outlinerFoldingRule(n)
> return getline(a:n) =~ '^\s*:' ?
> \ 20 : indent(a:n) < indent(a:n+1) ?
> \ ('>'.(1+indent(a:n)/&l:tabstop)) : (indent(a:n)/&l:tabstop)
> endf
Never mind, I've solved it. That should be <= and not <.
Curiously, the time it takes to find a bug is often inversely proportional
to how stupid the bug is.
Nicola
>
--
--
You received this message from the "vim_use" 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_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment