On 22-Apr-2011 Graeme McCutcheon <graememcc_fire...@graeme-online.co.uk> wrote:
> The to-do list includes the following bug:
>  When entering a C /* comment, after typing <Enter> for 70 times the
> indent
>  disappears. (Vincent Beffara, 2008 Jul 3)
> 
> 
> However, from the help for C indenting, the documentation for
> cinoptions syntax includes:
>     *N    Vim searches for unclosed comments at most N lines away.  This
>           limits the time needed to search for the start of a comment.
>           (default 70 lines).
> and something like "set cinoptions=*100" does indeed change the behavior.
> 
> Looks like a feature, not a bug!
> 
> In fairness to the reporter, the documentation about the default was
> incorrect until changeset b9e314fe473f.
> 
> Regards,
> Graeme

Hi, thanks for your effort!

I fixed the same "bug" some time ago the same way you did now (well, 
instead of digging through the docs I looked at the source code). 
I brought up the topic on the list and the response was that while the 
limit of 70 lines is a feature, the problem here is that the indent is 
for some reason decreased after the 70 lines while it would be better if 
it was copied from the previous line.

-- 
Cheers,
Lech

-- 
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

Raspunde prin e-mail lui