Patch 7.1.151
Problem:    Using whole line completion with 'ignorecase' and 'infercase' set
            and the line is empty get an lalloc(0) error.
Solution:   Don't try changing case for an empty match. (Matthew Wozniski)
Files:      src/edit.c


*** ../vim-7.1.150/src/edit.c   Tue Nov  6 22:26:39 2007
--- src/edit.c  Sun Nov  4 16:17:42 2007
***************
*** 2111,2117 ****
      int               has_lower = FALSE;
      int               was_letter = FALSE;
  
!     if (p_ic && curbuf->b_p_inf)
      {
        /* Infer case of completed part. */
  
--- 2111,2117 ----
      int               has_lower = FALSE;
      int               was_letter = FALSE;
  
!     if (p_ic && curbuf->b_p_inf && len > 0)
      {
        /* Infer case of completed part. */
  
***************
*** 2225,2231 ****
                    wca[i] = MB_TOUPPER(wca[i]);
            }
  
!           /* 
             * Generate encoding specific output from wide character array.
             * Multi-byte characters can occupy up to five bytes more than
             * ASCII characters, and we also need one byte for NUL, so stay
--- 2225,2231 ----
                    wca[i] = MB_TOUPPER(wca[i]);
            }
  
!           /*
             * Generate encoding specific output from wide character array.
             * Multi-byte characters can occupy up to five bytes more than
             * ASCII characters, and we also need one byte for NUL, so stay
*** ../vim-7.1.150/src/version.c        Thu Nov  8 10:35:02 2007
--- src/version.c       Thu Nov  8 13:01:34 2007
***************
*** 668,669 ****
--- 668,671 ----
  {   /* Add new patch number below this line */
+ /**/
+     151,
  /**/

-- 
>From "know your smileys":
 %-)    After staring at screen for 15 hours

 /// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui