summaryrefslogtreecommitdiff
path: root/src/window.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2007-08-05 16:49:43 +0000
committerBram Moolenaar <Bram@vim.org>2007-08-05 16:49:43 +0000
commit0963cd95f5940ebe10fdcdd176d94a3e92008595 (patch)
tree1fd59d90eb9e815a49fe28059b2de2b9f96a8f0f /src/window.c
parent3dcfbf7c4da5f576671c436bc64ce344a6267f71 (diff)
downloadvim-git-0963cd95f5940ebe10fdcdd176d94a3e92008595.tar.gz
updated for version 7.1-052v7.1.052
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/window.c b/src/window.c
index 85a0b02ce..b4ed10a51 100644
--- 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. */