4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: When creating a new match not all fields are initialized, which
12 may lead to unpredictable results.
13 Solution: Initialise rmm_ic and rmm_maxcol.
17 *** ../vim-7.1.051/src/window.c Thu Jul 26 22:55:11 2007
18 --- src/window.c Sun Aug 5 17:17:51 2007
26 if (*grp == NUL || *pat == NUL)
34 if (*grp == NUL || *pat == NUL)
38 EMSG2(_(e_nogroup), grp);
41 ! if ((match.regprog = vim_regcomp(pat, RE_MAGIC)) == NULL)
43 EMSG2(_(e_invarg2), pat);
46 EMSG2(_(e_nogroup), grp);
49 ! if ((regprog = vim_regcomp(pat, RE_MAGIC)) == NULL)
51 EMSG2(_(e_invarg2), pat);
56 m->pattern = vim_strsave(pat);
58 ! m->match.regprog = match.regprog;
60 /* Insert new match. The match list is in ascending order with regard to
61 * the match priorities. */
64 m->pattern = vim_strsave(pat);
66 ! m->match.regprog = regprog;
67 ! m->match.rmm_ic = FALSE;
68 ! m->match.rmm_maxcol = 0;
70 /* Insert new match. The match list is in ascending order with regard to
71 * the match priorities. */
72 *** ../vim-7.1.051/src/version.c Sun Aug 5 18:32:21 2007
73 --- src/version.c Sun Aug 5 18:47:55 2007
77 { /* Add new patch number below this line */
83 From "know your smileys":
84 8-O "Omigod!!" (done "rm -rf *" ?)
86 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
87 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
88 \\\ download, build and distribute -- http://www.A-A-P.org ///
89 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///