5921411
To: vim-dev@vim.org
5921411
Subject: Patch 7.0.115
5921411
Fcc: outbox
5921411
From: Bram Moolenaar <Bram@moolenaar.net>
5921411
Mime-Version: 1.0
5921411
Content-Type: text/plain; charset=ISO-8859-1
5921411
Content-Transfer-Encoding: 8bit
5921411
------------
5921411
5921411
Patch 7.0.115
5921411
Problem:    When 'ignorecase' is set, Insert mode completion only adds "foo"
5921411
	    and not "Foo" when both are found.
5921411
	    A found match isn't displayed right away when 'completeopt' does
5921411
	    not have "menu" or "menuone".
5921411
Solution:   Do not ignore case when checking if a completion match already
5921411
	    exists.  call ins_compl_check_keys() also when not using a popup
5921411
	    menu. (Yukihiro Nakadaira)
5921411
Files:	    src/edit.c
5921411
5921411
5921411
*** ../vim-7.0.114/src/edit.c	Tue Oct  3 15:22:00 2006
5921411
--- src/edit.c	Tue Oct  3 14:57:47 2006
5921411
***************
5921411
*** 2157,2163 ****
5921411
  	do
5921411
  	{
5921411
  	    if (    !(match->cp_flags & ORIGINAL_TEXT)
5921411
! 		    && ins_compl_equal(match, str, len)
5921411
  		    && match->cp_str[len] == NUL)
5921411
  		return NOTDONE;
5921411
  	    match = match->cp_next;
5921411
--- 2157,2163 ----
5921411
  	do
5921411
  	{
5921411
  	    if (    !(match->cp_flags & ORIGINAL_TEXT)
5921411
! 		    && STRNCMP(match->cp_str, str, len) == 0
5921411
  		    && match->cp_str[len] == NUL)
5921411
  		return NOTDONE;
5921411
  	    match = match->cp_next;
5921411
***************
5921411
*** 4042,4048 ****
5921411
  	    if (got_int)
5921411
  		break;
5921411
  	    /* Fill the popup menu as soon as possible. */
5921411
! 	    if (pum_wanted() && type != -1)
5921411
  		ins_compl_check_keys(0);
5921411
  
5921411
  	    if ((ctrl_x_mode != 0 && ctrl_x_mode != CTRL_X_WHOLE_LINE)
5921411
--- 4042,4048 ----
5921411
  	    if (got_int)
5921411
  		break;
5921411
  	    /* Fill the popup menu as soon as possible. */
5921411
! 	    if (type != -1)
5921411
  		ins_compl_check_keys(0);
5921411
  
5921411
  	    if ((ctrl_x_mode != 0 && ctrl_x_mode != CTRL_X_WHOLE_LINE)
5921411
*** ../vim-7.0.114/src/version.c	Tue Oct  3 15:36:09 2006
5921411
--- src/version.c	Tue Oct  3 15:46:15 2006
5921411
***************
5921411
*** 668,669 ****
5921411
--- 668,671 ----
5921411
  {   /* Add new patch number below this line */
5921411
+ /**/
5921411
+     115,
5921411
  /**/
5921411
5921411
-- 
5921411
The budget process was invented by an alien race of sadistic beings who
5921411
resemble large cats.
5921411
				(Scott Adams - The Dilbert principle)
5921411
5921411
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
5921411
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
5921411
\\\        download, build and distribute -- http://www.A-A-P.org        ///
5921411
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///