Christian wrote:

> this patch fixes a problem with the gn command. This behaviour has been 
> noticed on https://vi.stackexchange.com/q/16276/71
> 
> It might happen, that the area being matched by the gn command is 
> actually not correct, because of the last search wrapping around and 
> matching at a previous match. Therefore, make sure to reset wrapscan 
> later and also check the return value of the last searchit() function. 
> If the last searchit() fails, try again from the position of the last 
> match before failing.
> 
> Patch contains a test, that currently fails.

Thanks.  I think the comment for "first_match" was wrong, I'll correct
that.


-- 
"Beware of bugs in the above code; I have only proved
it correct, not tried it." -- Donald Knuth

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

Raspunde prin e-mail lui