Karsten Hopp da4196
To: vim-dev@vim.org
Karsten Hopp da4196
Subject: Patch 7.0.113
Karsten Hopp da4196
Fcc: outbox
Karsten Hopp da4196
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp da4196
Mime-Version: 1.0
Karsten Hopp da4196
Content-Type: text/plain; charset=ISO-8859-1
Karsten Hopp da4196
Content-Transfer-Encoding: 8bit
Karsten Hopp da4196
------------
Karsten Hopp da4196
Karsten Hopp da4196
Patch 7.0.113
Karsten Hopp da4196
Problem:    Using CTRL-L in Insert completion when there is no current match
Karsten Hopp da4196
	    may cause a crash. (Yukihiro Nakadaira)
Karsten Hopp da4196
Solution:   Check for compl_leader to be NULL
Karsten Hopp da4196
Files:	    src/edit.c
Karsten Hopp da4196
Karsten Hopp da4196
Karsten Hopp da4196
*** ../vim-7.0.112/src/edit.c	Thu Sep 14 11:07:08 2006
Karsten Hopp da4196
--- src/edit.c	Tue Oct  3 14:57:47 2006
Karsten Hopp da4196
***************
Karsten Hopp da4196
*** 3206,3212 ****
Karsten Hopp da4196
  	    for (cp = compl_shown_match->cp_next; cp != NULL
Karsten Hopp da4196
  				 && cp != compl_first_match; cp = cp->cp_next)
Karsten Hopp da4196
  	    {
Karsten Hopp da4196
! 		if (ins_compl_equal(cp, compl_leader,
Karsten Hopp da4196
  						   (int)STRLEN(compl_leader)))
Karsten Hopp da4196
  		{
Karsten Hopp da4196
  		    p = cp->cp_str;
Karsten Hopp da4196
--- 3206,3213 ----
Karsten Hopp da4196
  	    for (cp = compl_shown_match->cp_next; cp != NULL
Karsten Hopp da4196
  				 && cp != compl_first_match; cp = cp->cp_next)
Karsten Hopp da4196
  	    {
Karsten Hopp da4196
! 		if (compl_leader == NULL
Karsten Hopp da4196
! 			|| ins_compl_equal(cp, compl_leader,
Karsten Hopp da4196
  						   (int)STRLEN(compl_leader)))
Karsten Hopp da4196
  		{
Karsten Hopp da4196
  		    p = cp->cp_str;
Karsten Hopp da4196
*** ../vim-7.0.112/src/version.c	Tue Oct  3 15:02:11 2006
Karsten Hopp da4196
--- src/version.c	Tue Oct  3 15:20:13 2006
Karsten Hopp da4196
***************
Karsten Hopp da4196
*** 668,669 ****
Karsten Hopp da4196
--- 668,671 ----
Karsten Hopp da4196
  {   /* Add new patch number below this line */
Karsten Hopp da4196
+ /**/
Karsten Hopp da4196
+     113,
Karsten Hopp da4196
  /**/
Karsten Hopp da4196
Karsten Hopp da4196
-- 
Karsten Hopp da4196
I recommend ordering large cargo containers of paper towels to make up
Karsten Hopp da4196
whatever budget underruns you have.  Paper products are always useful and they
Karsten Hopp da4196
have the advantage of being completely flushable if you need to make room in
Karsten Hopp da4196
the storage area later.
Karsten Hopp da4196
				(Scott Adams - The Dilbert principle)
Karsten Hopp da4196
Karsten Hopp da4196
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp da4196
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp da4196
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp da4196
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///