Bram,
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.
Best,
Christian
--
Denn das Gemeine ist's eigentlich, was den Herren Natur heißt!
Aus sich schöpfen mag wohl heißen, mit dem eben fertig werden, was
uns bequem wird!
-- Goethe, Maximen und Reflektionen, Nr. 1143