diff options
Diffstat (limited to 'src/search.c')
-rw-r--r-- | src/search.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/search.c b/src/search.c index 42351d5e6..efcf3d96a 100644 --- a/src/search.c +++ b/src/search.c @@ -973,7 +973,16 @@ searchit( NULL, NULL #endif )) == 0) + { +#ifdef FEAT_RELTIME + /* If the search timed out, we did find a match + * but it might be the wrong one, so that's not + * OK. */ + if (timed_out != NULL && *timed_out) + match_ok = FALSE; +#endif break; + } /* Need to get the line pointer again, a * multi-line search may have made it invalid. */ |