diff options
author | Bram Moolenaar <Bram@vim.org> | 2007-08-05 16:49:43 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2007-08-05 16:49:43 +0000 |
commit | 0963cd95f5940ebe10fdcdd176d94a3e92008595 (patch) | |
tree | 1fd59d90eb9e815a49fe28059b2de2b9f96a8f0f | |
parent | 3dcfbf7c4da5f576671c436bc64ce344a6267f71 (diff) |
updated for version 7.1-052v7.1.052
-rw-r--r-- | src/version.c | 2 | ||||
-rw-r--r-- | src/window.c | 8 |
2 files changed, 7 insertions, 3 deletions
diff --git a/src/version.c b/src/version.c index a8edba471f..96b11d0618 100644 --- 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, diff --git a/src/window.c b/src/window.c index 85a0b02cea..b4ed10a515 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. */ |