1
0
forked from aniani/vim

updated for version 7.2-174

This commit is contained in:
Bram Moolenaar
2009-05-15 19:33:18 +00:00
parent 0c094b9d7f
commit 78a1531005
16 changed files with 95 additions and 137 deletions

View File

@@ -522,7 +522,6 @@ last_pat_prog(regmatch)
* When FEAT_EVAL is defined, returns the index of the first matching
* subpattern plus one; one if there was none.
*/
/*ARGSUSED*/
int
searchit(win, buf, pos, dir, pat, count, options, pat_use, stop_lnum, tm)
win_T *win; /* window to search in; can be NULL for a
@@ -535,7 +534,7 @@ searchit(win, buf, pos, dir, pat, count, options, pat_use, stop_lnum, tm)
int options;
int pat_use; /* which pattern to use when "pat" is empty */
linenr_T stop_lnum; /* stop after this line number when != 0 */
proftime_T *tm; /* timeout limit or NULL */
proftime_T *tm UNUSED; /* timeout limit or NULL */
{
int found;
linenr_T lnum; /* no init to shut up Apollo cc */
@@ -554,8 +553,6 @@ searchit(win, buf, pos, dir, pat, count, options, pat_use, stop_lnum, tm)
int save_called_emsg = called_emsg;
#ifdef FEAT_SEARCH_EXTRA
int break_loop = FALSE;
#else
# define break_loop FALSE
#endif
if (search_regcomp(pat, RE_SEARCH, pat_use,
@@ -940,7 +937,10 @@ searchit(win, buf, pos, dir, pat, count, options, pat_use, stop_lnum, tm)
* twice.
*/
if (!p_ws || stop_lnum != 0 || got_int || called_emsg
|| break_loop || found || loop)
#ifdef FEAT_SEARCH_EXTRA
|| break_loop
#endif
|| found || loop)
break;
/*
@@ -958,7 +958,11 @@ searchit(win, buf, pos, dir, pat, count, options, pat_use, stop_lnum, tm)
give_warning((char_u *)_(dir == BACKWARD
? top_bot_msg : bot_top_msg), TRUE);
}
if (got_int || called_emsg || break_loop)
if (got_int || called_emsg
#ifdef FEAT_SEARCH_EXTRA
|| break_loop
#endif
)
break;
}
while (--count > 0 && found); /* stop after count matches or no match */