# HG changeset patch # User vimboss # Date 1200999578 0 # Node ID dfcff6590aba6d93a69b414759b164c255fda08f # Parent 710b52d02c4a0649d5b20c38e3394a2e248be9f5 updated for version 7.1-238 diff --git a/src/eval.c b/src/eval.c --- a/src/eval.c +++ b/src/eval.c @@ -14189,6 +14189,10 @@ searchpair_cmn(argvars, match_pos) goto theend; } + /* Using 'r' implies 'W', otherwise it doesn't work. */ + if (flags & SP_REPEAT) + p_ws = FALSE; + /* Optional fifth argument: skip expression */ if (argvars[3].v_type == VAR_UNKNOWN || argvars[4].v_type == VAR_UNKNOWN) @@ -14345,6 +14349,9 @@ do_searchpair(spat, mpat, epat, dir, ski } foundpos = pos; + /* clear the start flag to avoid getting stuck here */ + options &= ~SEARCH_START; + /* If the skip pattern matches, ignore this match. */ if (*skip != NUL) { diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -667,6 +667,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 238, +/**/ 237, /**/ 236,