99b86a7
To: vim-dev@vim.org
99b86a7
Subject: Patch 7.1.151
99b86a7
Fcc: outbox
99b86a7
From: Bram Moolenaar <Bram@moolenaar.net>
99b86a7
Mime-Version: 1.0
99b86a7
Content-Type: text/plain; charset=ISO-8859-1
99b86a7
Content-Transfer-Encoding: 8bit
99b86a7
------------
99b86a7
99b86a7
Patch 7.1.151
99b86a7
Problem:    Using whole line completion with 'ignorecase' and 'infercase' set
99b86a7
	    and the line is empty get an lalloc(0) error.
99b86a7
Solution:   Don't try changing case for an empty match. (Matthew Wozniski)
99b86a7
Files:	    src/edit.c
99b86a7
99b86a7
99b86a7
*** ../vim-7.1.150/src/edit.c	Tue Nov  6 22:26:39 2007
99b86a7
--- src/edit.c	Sun Nov  4 16:17:42 2007
99b86a7
***************
99b86a7
*** 2111,2117 ****
99b86a7
      int		has_lower = FALSE;
99b86a7
      int		was_letter = FALSE;
99b86a7
  
99b86a7
!     if (p_ic && curbuf->b_p_inf)
99b86a7
      {
99b86a7
  	/* Infer case of completed part. */
99b86a7
  
99b86a7
--- 2111,2117 ----
99b86a7
      int		has_lower = FALSE;
99b86a7
      int		was_letter = FALSE;
99b86a7
  
99b86a7
!     if (p_ic && curbuf->b_p_inf && len > 0)
99b86a7
      {
99b86a7
  	/* Infer case of completed part. */
99b86a7
  
99b86a7
***************
99b86a7
*** 2225,2231 ****
99b86a7
  		    wca[i] = MB_TOUPPER(wca[i]);
99b86a7
  	    }
99b86a7
  
99b86a7
! 	    /* 
99b86a7
  	     * Generate encoding specific output from wide character array.
99b86a7
  	     * Multi-byte characters can occupy up to five bytes more than
99b86a7
  	     * ASCII characters, and we also need one byte for NUL, so stay
99b86a7
--- 2225,2231 ----
99b86a7
  		    wca[i] = MB_TOUPPER(wca[i]);
99b86a7
  	    }
99b86a7
  
99b86a7
! 	    /*
99b86a7
  	     * Generate encoding specific output from wide character array.
99b86a7
  	     * Multi-byte characters can occupy up to five bytes more than
99b86a7
  	     * ASCII characters, and we also need one byte for NUL, so stay
99b86a7
*** ../vim-7.1.150/src/version.c	Thu Nov  8 10:35:02 2007
99b86a7
--- src/version.c	Thu Nov  8 13:01:34 2007
99b86a7
***************
99b86a7
*** 668,669 ****
99b86a7
--- 668,671 ----
99b86a7
  {   /* Add new patch number below this line */
99b86a7
+ /**/
99b86a7
+     151,
99b86a7
  /**/
99b86a7
99b86a7
-- 
99b86a7
From "know your smileys":
99b86a7
 %-)	After staring at screen for 15 hours
99b86a7
99b86a7
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
99b86a7
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
99b86a7
\\\        download, build and distribute -- http://www.A-A-P.org        ///
99b86a7
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///