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