Karsten Hopp 920bee
To: vim_dev@googlegroups.com
Karsten Hopp 920bee
Subject: Patch 7.4.661
Karsten Hopp 920bee
Fcc: outbox
Karsten Hopp 920bee
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 920bee
Mime-Version: 1.0
Karsten Hopp 920bee
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 920bee
Content-Transfer-Encoding: 8bit
Karsten Hopp 920bee
------------
Karsten Hopp 920bee
Karsten Hopp 920bee
Patch 7.4.661
Karsten Hopp 920bee
Problem:    Using "0 CTRL-D" in Insert mode may have CursorHoldI interfere.
Karsten Hopp 920bee
	    (Gary Johnson)
Karsten Hopp 920bee
Solution:   Don't store K_CURSORHOLD as the last character. (Christian
Karsten Hopp 920bee
	    Brabandt)
Karsten Hopp 920bee
Files:	    src/edit.c
Karsten Hopp 920bee
Karsten Hopp 920bee
Karsten Hopp 920bee
*** ../vim-7.4.660/src/edit.c	2015-03-08 14:48:32.955696408 +0100
Karsten Hopp 920bee
--- src/edit.c	2015-03-13 13:21:42.837658498 +0100
Karsten Hopp 920bee
***************
Karsten Hopp 920bee
*** 760,766 ****
Karsten Hopp 920bee
  	/*
Karsten Hopp 920bee
  	 * Get a character for Insert mode.  Ignore K_IGNORE.
Karsten Hopp 920bee
  	 */
Karsten Hopp 920bee
! 	lastc = c;			/* remember previous char for CTRL-D */
Karsten Hopp 920bee
  	do
Karsten Hopp 920bee
  	{
Karsten Hopp 920bee
  	    c = safe_vgetc();
Karsten Hopp 920bee
--- 760,767 ----
Karsten Hopp 920bee
  	/*
Karsten Hopp 920bee
  	 * Get a character for Insert mode.  Ignore K_IGNORE.
Karsten Hopp 920bee
  	 */
Karsten Hopp 920bee
! 	if (c != K_CURSORHOLD)
Karsten Hopp 920bee
! 	    lastc = c;		/* remember the previous char for CTRL-D */
Karsten Hopp 920bee
  	do
Karsten Hopp 920bee
  	{
Karsten Hopp 920bee
  	    c = safe_vgetc();
Karsten Hopp 920bee
*** ../vim-7.4.660/src/version.c	2015-03-13 12:53:32.271786748 +0100
Karsten Hopp 920bee
--- src/version.c	2015-03-13 13:22:49.460933957 +0100
Karsten Hopp 920bee
***************
Karsten Hopp 920bee
*** 743,744 ****
Karsten Hopp 920bee
--- 743,746 ----
Karsten Hopp 920bee
  {   /* Add new patch number below this line */
Karsten Hopp 920bee
+ /**/
Karsten Hopp 920bee
+     661,
Karsten Hopp 920bee
  /**/
Karsten Hopp 920bee
Karsten Hopp 920bee
-- 
Karsten Hopp 920bee
Computers are not intelligent.  They only think they are.
Karsten Hopp 920bee
Karsten Hopp 920bee
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 920bee
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 920bee
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 920bee
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///