|
Karsten Hopp |
de2d63 |
To: vim-dev@vim.org
|
|
Karsten Hopp |
de2d63 |
Subject: patch 7.1.052
|
|
Karsten Hopp |
de2d63 |
Fcc: outbox
|
|
Karsten Hopp |
de2d63 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
de2d63 |
Mime-Version: 1.0
|
|
Karsten Hopp |
de2d63 |
Content-Type: text/plain; charset=ISO-8859-1
|
|
Karsten Hopp |
de2d63 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
de2d63 |
------------
|
|
Karsten Hopp |
de2d63 |
|
|
Karsten Hopp |
de2d63 |
Patch 7.1.052
|
|
Karsten Hopp |
de2d63 |
Problem: When creating a new match not all fields are initialized, which
|
|
Karsten Hopp |
de2d63 |
may lead to unpredictable results.
|
|
Karsten Hopp |
de2d63 |
Solution: Initialise rmm_ic and rmm_maxcol.
|
|
Karsten Hopp |
de2d63 |
Files: src/window.c
|
|
Karsten Hopp |
de2d63 |
|
|
Karsten Hopp |
de2d63 |
|
|
Karsten Hopp |
de2d63 |
*** ../vim-7.1.051/src/window.c Thu Jul 26 22:55:11 2007
|
|
Karsten Hopp |
de2d63 |
--- src/window.c Sun Aug 5 17:17:51 2007
|
|
Karsten Hopp |
de2d63 |
***************
|
|
Karsten Hopp |
de2d63 |
*** 6200,6206 ****
|
|
Karsten Hopp |
de2d63 |
matchitem_T *prev;
|
|
Karsten Hopp |
de2d63 |
matchitem_T *m;
|
|
Karsten Hopp |
de2d63 |
int hlg_id;
|
|
Karsten Hopp |
de2d63 |
! regmmatch_T match;
|
|
Karsten Hopp |
de2d63 |
|
|
Karsten Hopp |
de2d63 |
if (*grp == NUL || *pat == NUL)
|
|
Karsten Hopp |
de2d63 |
return -1;
|
|
Karsten Hopp |
de2d63 |
--- 6243,6249 ----
|
|
Karsten Hopp |
de2d63 |
matchitem_T *prev;
|
|
Karsten Hopp |
de2d63 |
matchitem_T *m;
|
|
Karsten Hopp |
de2d63 |
int hlg_id;
|
|
Karsten Hopp |
de2d63 |
! regprog_T *regprog;
|
|
Karsten Hopp |
de2d63 |
|
|
Karsten Hopp |
de2d63 |
if (*grp == NUL || *pat == NUL)
|
|
Karsten Hopp |
de2d63 |
return -1;
|
|
Karsten Hopp |
de2d63 |
***************
|
|
Karsten Hopp |
de2d63 |
*** 6227,6233 ****
|
|
Karsten Hopp |
de2d63 |
EMSG2(_(e_nogroup), grp);
|
|
Karsten Hopp |
de2d63 |
return -1;
|
|
Karsten Hopp |
de2d63 |
}
|
|
Karsten Hopp |
de2d63 |
! if ((match.regprog = vim_regcomp(pat, RE_MAGIC)) == NULL)
|
|
Karsten Hopp |
de2d63 |
{
|
|
Karsten Hopp |
de2d63 |
EMSG2(_(e_invarg2), pat);
|
|
Karsten Hopp |
de2d63 |
return -1;
|
|
Karsten Hopp |
de2d63 |
--- 6270,6276 ----
|
|
Karsten Hopp |
de2d63 |
EMSG2(_(e_nogroup), grp);
|
|
Karsten Hopp |
de2d63 |
return -1;
|
|
Karsten Hopp |
de2d63 |
}
|
|
Karsten Hopp |
de2d63 |
! if ((regprog = vim_regcomp(pat, RE_MAGIC)) == NULL)
|
|
Karsten Hopp |
de2d63 |
{
|
|
Karsten Hopp |
de2d63 |
EMSG2(_(e_invarg2), pat);
|
|
Karsten Hopp |
de2d63 |
return -1;
|
|
Karsten Hopp |
de2d63 |
***************
|
|
Karsten Hopp |
de2d63 |
*** 6250,6256 ****
|
|
Karsten Hopp |
de2d63 |
m->priority = prio;
|
|
Karsten Hopp |
de2d63 |
m->pattern = vim_strsave(pat);
|
|
Karsten Hopp |
de2d63 |
m->hlg_id = hlg_id;
|
|
Karsten Hopp |
de2d63 |
! m->match.regprog = match.regprog;
|
|
Karsten Hopp |
de2d63 |
|
|
Karsten Hopp |
de2d63 |
/* Insert new match. The match list is in ascending order with regard to
|
|
Karsten Hopp |
de2d63 |
* the match priorities. */
|
|
Karsten Hopp |
de2d63 |
--- 6293,6301 ----
|
|
Karsten Hopp |
de2d63 |
m->priority = prio;
|
|
Karsten Hopp |
de2d63 |
m->pattern = vim_strsave(pat);
|
|
Karsten Hopp |
de2d63 |
m->hlg_id = hlg_id;
|
|
Karsten Hopp |
de2d63 |
! m->match.regprog = regprog;
|
|
Karsten Hopp |
de2d63 |
! m->match.rmm_ic = FALSE;
|
|
Karsten Hopp |
de2d63 |
! m->match.rmm_maxcol = 0;
|
|
Karsten Hopp |
de2d63 |
|
|
Karsten Hopp |
de2d63 |
/* Insert new match. The match list is in ascending order with regard to
|
|
Karsten Hopp |
de2d63 |
* the match priorities. */
|
|
Karsten Hopp |
de2d63 |
*** ../vim-7.1.051/src/version.c Sun Aug 5 18:32:21 2007
|
|
Karsten Hopp |
de2d63 |
--- src/version.c Sun Aug 5 18:47:55 2007
|
|
Karsten Hopp |
de2d63 |
***************
|
|
Karsten Hopp |
de2d63 |
*** 668,669 ****
|
|
Karsten Hopp |
de2d63 |
--- 668,671 ----
|
|
Karsten Hopp |
de2d63 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
de2d63 |
+ /**/
|
|
Karsten Hopp |
de2d63 |
+ 52,
|
|
Karsten Hopp |
de2d63 |
/**/
|
|
Karsten Hopp |
de2d63 |
|
|
Karsten Hopp |
de2d63 |
--
|
|
Karsten Hopp |
de2d63 |
From "know your smileys":
|
|
Karsten Hopp |
de2d63 |
8-O "Omigod!!" (done "rm -rf *" ?)
|
|
Karsten Hopp |
de2d63 |
|
|
Karsten Hopp |
de2d63 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
de2d63 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
de2d63 |
\\\ download, build and distribute -- http://www.A-A-P.org ///
|
|
Karsten Hopp |
de2d63 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|