Karsten Hopp 839e7a
To: vim-dev@vim.org
Karsten Hopp 839e7a
Subject: Patch 7.0.073
Karsten Hopp 839e7a
Fcc: outbox
Karsten Hopp 839e7a
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 839e7a
Mime-Version: 1.0
Karsten Hopp 839e7a
Content-Type: text/plain; charset=ISO-8859-1
Karsten Hopp 839e7a
Content-Transfer-Encoding: 8bit
Karsten Hopp 839e7a
------------
Karsten Hopp 839e7a
Karsten Hopp 839e7a
Patch 7.0.073
Karsten Hopp 839e7a
Problem:    Insert mode completion: Typing <CR> sometimes selects the original
Karsten Hopp 839e7a
	    text instead of keeping what was typed.  (Justin Constantino)
Karsten Hopp 839e7a
Solution:   Don't let <CR> select the original text if there is no popup menu.
Karsten Hopp 839e7a
Files:	    src/edit.c
Karsten Hopp 839e7a
Karsten Hopp 839e7a
Karsten Hopp 839e7a
*** ../vim-7.0.072/src/edit.c	Tue Aug 29 17:28:56 2006
Karsten Hopp 839e7a
--- src/edit.c	Tue Aug 29 17:40:06 2006
Karsten Hopp 839e7a
***************
Karsten Hopp 839e7a
*** 3097,3102 ****
Karsten Hopp 839e7a
--- 3097,3106 ----
Karsten Hopp 839e7a
  
Karsten Hopp 839e7a
      /* Show the popup menu with a different set of matches. */
Karsten Hopp 839e7a
      ins_compl_show_pum();
Karsten Hopp 839e7a
+ 
Karsten Hopp 839e7a
+     /* Don't let Enter select the original text when there is no popup menu. */
Karsten Hopp 839e7a
+     if (compl_match_array == NULL)
Karsten Hopp 839e7a
+ 	compl_enter_selects = FALSE;
Karsten Hopp 839e7a
  }
Karsten Hopp 839e7a
  
Karsten Hopp 839e7a
  /*
Karsten Hopp 839e7a
*** ../vim-7.0.072/src/version.c	Tue Aug 29 18:16:37 2006
Karsten Hopp 839e7a
--- src/version.c	Tue Aug 29 18:35:33 2006
Karsten Hopp 839e7a
***************
Karsten Hopp 839e7a
*** 668,669 ****
Karsten Hopp 839e7a
--- 668,671 ----
Karsten Hopp 839e7a
  {   /* Add new patch number below this line */
Karsten Hopp 839e7a
+ /**/
Karsten Hopp 839e7a
+     73,
Karsten Hopp 839e7a
  /**/
Karsten Hopp 839e7a
Karsten Hopp 839e7a
-- 
Karsten Hopp 839e7a
hundred-and-one symptoms of being an internet addict:
Karsten Hopp 839e7a
269. You wonder how you can make your dustbin produce Sesame Street's
Karsten Hopp 839e7a
     Oscar's the Garbage Monster song when you empty it.
Karsten Hopp 839e7a
Karsten Hopp 839e7a
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 839e7a
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 839e7a
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp 839e7a
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///