ap schrieb:
> Hi ,
>
> I think I found a bug in the search() function.
> X marks the spot (cursor).
>
> X a
> c Y
>
> :call search('\_s*a\_s*','e')
>
> It seems that search() skips a character under this circumstances,
> or sets the end at the wrong place. The cursor will be positioned
> at the last col in line2 (Y) which is wrong, because the pattern
> can't possibly match a 'c'. I have a strong feeling this has
> something to do with the newline atom :-).
>
> -ap
Same (start at X, stop at Y) for
:call search("^", "e")
:call search("^", "ce")
--
Andy
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---