changeset 1338:06e0f7482cef v7.1.052

updated for version 7.1-052
author vimboss
date Sun, 05 Aug 2007 16:49:43 +0000
parents 36275e20d997
children 3bfd2e1e2609
files src/version.c src/window.c
diffstat 2 files changed, 7 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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 */
 /**/
+    52,
+/**/
     51,
 /**/
     50,
--- a/src/window.c
+++ b/src/window.c
@@ -6200,7 +6200,7 @@ match_add(wp, grp, pat, prio, id)
     matchitem_T *prev;
     matchitem_T *m;
     int		hlg_id;
-    regmmatch_T match;
+    regprog_T	*regprog;
 
     if (*grp == NUL || *pat == NUL)
 	return -1;
@@ -6227,7 +6227,7 @@ match_add(wp, grp, pat, prio, id)
 	EMSG2(_(e_nogroup), grp);
 	return -1;
     }
-    if ((match.regprog = vim_regcomp(pat, RE_MAGIC)) == NULL)
+    if ((regprog = vim_regcomp(pat, RE_MAGIC)) == NULL)
     {
 	EMSG2(_(e_invarg2), pat);
 	return -1;
@@ -6250,7 +6250,9 @@ match_add(wp, grp, pat, prio, id)
     m->priority = prio;
     m->pattern = vim_strsave(pat);
     m->hlg_id = hlg_id;
-    m->match.regprog = match.regprog;
+    m->match.regprog = regprog;
+    m->match.rmm_ic = FALSE;
+    m->match.rmm_maxcol = 0;
 
     /* Insert new match.  The match list is in ascending order with regard to
      * the match priorities. */