Karsten Hopp 71e27b
To: vim-dev@vim.org
Karsten Hopp 71e27b
Subject: patch 7.1.042
Karsten Hopp 71e27b
Fcc: outbox
Karsten Hopp 71e27b
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 71e27b
Mime-Version: 1.0
Karsten Hopp 71e27b
Content-Type: text/plain; charset=ISO-8859-1
Karsten Hopp 71e27b
Content-Transfer-Encoding: 8bit
Karsten Hopp 71e27b
------------
Karsten Hopp 71e27b
Karsten Hopp 71e27b
Patch 7.1.042 (after 7.1.040)
Karsten Hopp 71e27b
Problem:    Internal error when using matchadd(). (David Larson)
Karsten Hopp 71e27b
Solution:   Check the third argument to be present before using the fourth
Karsten Hopp 71e27b
	    argument. (Martin Toft)
Karsten Hopp 71e27b
Files:	    src/eval.c
Karsten Hopp 71e27b
Karsten Hopp 71e27b
Karsten Hopp 71e27b
*** ../vim-7.1.041/src/eval.c	Thu Jul 26 22:55:11 2007
Karsten Hopp 71e27b
--- src/eval.c	Fri Jul 27 21:29:39 2007
Karsten Hopp 71e27b
***************
Karsten Hopp 71e27b
*** 7108,7114 ****
Karsten Hopp 71e27b
      {"getftype",	1, 1, f_getftype},
Karsten Hopp 71e27b
      {"getline",		1, 2, f_getline},
Karsten Hopp 71e27b
      {"getloclist",	1, 1, f_getqflist},
Karsten Hopp 71e27b
!     {"getmatches",  	0, 0, f_getmatches},
Karsten Hopp 71e27b
      {"getpos",		1, 1, f_getpos},
Karsten Hopp 71e27b
      {"getqflist",	0, 0, f_getqflist},
Karsten Hopp 71e27b
      {"getreg",		0, 2, f_getreg},
Karsten Hopp 71e27b
--- 7108,7114 ----
Karsten Hopp 71e27b
      {"getftype",	1, 1, f_getftype},
Karsten Hopp 71e27b
      {"getline",		1, 2, f_getline},
Karsten Hopp 71e27b
      {"getloclist",	1, 1, f_getqflist},
Karsten Hopp 71e27b
!     {"getmatches",	0, 0, f_getmatches},
Karsten Hopp 71e27b
      {"getpos",		1, 1, f_getpos},
Karsten Hopp 71e27b
      {"getqflist",	0, 0, f_getqflist},
Karsten Hopp 71e27b
      {"getreg",		0, 2, f_getreg},
Karsten Hopp 71e27b
***************
Karsten Hopp 71e27b
*** 12526,12534 ****
Karsten Hopp 71e27b
      if (grp == NULL || pat == NULL)
Karsten Hopp 71e27b
  	return;
Karsten Hopp 71e27b
      if (argvars[2].v_type != VAR_UNKNOWN)
Karsten Hopp 71e27b
  	prio = get_tv_number_chk(&argvars[2], &error);
Karsten Hopp 71e27b
!     if (argvars[3].v_type != VAR_UNKNOWN)
Karsten Hopp 71e27b
! 	id = get_tv_number_chk(&argvars[3], &error);
Karsten Hopp 71e27b
      if (error == TRUE)
Karsten Hopp 71e27b
  	return;
Karsten Hopp 71e27b
      if (id >= 1 && id <= 3)
Karsten Hopp 71e27b
--- 12526,12536 ----
Karsten Hopp 71e27b
      if (grp == NULL || pat == NULL)
Karsten Hopp 71e27b
  	return;
Karsten Hopp 71e27b
      if (argvars[2].v_type != VAR_UNKNOWN)
Karsten Hopp 71e27b
+     {
Karsten Hopp 71e27b
  	prio = get_tv_number_chk(&argvars[2], &error);
Karsten Hopp 71e27b
! 	if (argvars[3].v_type != VAR_UNKNOWN)
Karsten Hopp 71e27b
! 	    id = get_tv_number_chk(&argvars[3], &error);
Karsten Hopp 71e27b
!     }
Karsten Hopp 71e27b
      if (error == TRUE)
Karsten Hopp 71e27b
  	return;
Karsten Hopp 71e27b
      if (id >= 1 && id <= 3)
Karsten Hopp 71e27b
*** ../vim-7.1.041/src/version.c	Thu Jul 26 23:10:50 2007
Karsten Hopp 71e27b
--- src/version.c	Fri Jul 27 21:31:13 2007
Karsten Hopp 71e27b
***************
Karsten Hopp 71e27b
*** 668,669 ****
Karsten Hopp 71e27b
--- 668,671 ----
Karsten Hopp 71e27b
  {   /* Add new patch number below this line */
Karsten Hopp 71e27b
+ /**/
Karsten Hopp 71e27b
+     42,
Karsten Hopp 71e27b
  /**/
Karsten Hopp 71e27b
Karsten Hopp 71e27b
-- 
Karsten Hopp 71e27b
The future isn't what it used to be.
Karsten Hopp 71e27b
Karsten Hopp 71e27b
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 71e27b
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 71e27b
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp 71e27b
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///