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