diff src/search.c @ 648:9032e4668296 v7.0189

updated for version 7.0189
author vimboss
date Mon, 30 Jan 2006 00:14:18 +0000
parents 9e359e5759f6
children 9090f866cd57
line wrap: on
line diff
--- a/src/search.c
+++ b/src/search.c
@@ -521,6 +521,7 @@ searchit(win, buf, pos, dir, pat, count,
     int		match_ok;
     long	nmatched;
     int		submatch = 0;
+    int		save_called_emsg = called_emsg;
 #ifdef FEAT_SEARCH_EXTRA
     int		break_loop = FALSE;
 #else
@@ -552,9 +553,9 @@ searchit(win, buf, pos, dir, pat, count,
     else
 	extra_col = 1;
 
-/*
- * find the string
- */
+    /*
+     * find the string
+     */
     called_emsg = FALSE;
     do	/* loop for count */
     {
@@ -865,6 +866,8 @@ searchit(win, buf, pos, dir, pat, count,
 
     vim_free(regmatch.regprog);
 
+    called_emsg |= save_called_emsg;
+
     if (!found)		    /* did not find it */
     {
 	if (got_int)