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