Karsten Hopp 705995
To: vim-dev@vim.org
Karsten Hopp 705995
Subject: Patch 7.0.114
Karsten Hopp 705995
Fcc: outbox
Karsten Hopp 705995
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 705995
Mime-Version: 1.0
Karsten Hopp 705995
Content-Type: text/plain; charset=ISO-8859-1
Karsten Hopp 705995
Content-Transfer-Encoding: 8bit
Karsten Hopp 705995
------------
Karsten Hopp 705995
Karsten Hopp 705995
Patch 7.0.114
Karsten Hopp 705995
Problem:    When aborting an insert with CTRL-C an extra undo point is
Karsten Hopp 705995
	    created in the GUI. (Yukihiro Nakadaira)
Karsten Hopp 705995
Solution:   Call gotchars() only when advancing.
Karsten Hopp 705995
Files:	    src/getchar.c
Karsten Hopp 705995
Karsten Hopp 705995
Karsten Hopp 705995
*** ../vim-7.0.113/src/getchar.c	Tue Sep  5 12:57:14 2006
Karsten Hopp 705995
--- src/getchar.c	Tue Sep 26 17:44:45 2006
Karsten Hopp 705995
***************
Karsten Hopp 705995
*** 1960,1969 ****
Karsten Hopp 705995
  			c = Ctrl_C;
Karsten Hopp 705995
  		    flush_buffers(TRUE);	/* flush all typeahead */
Karsten Hopp 705995
  
Karsten Hopp 705995
! 		    /* Also record this character, it might be needed to
Karsten Hopp 705995
! 		     * get out of Insert mode. */
Karsten Hopp 705995
! 		    *typebuf.tb_buf = c;
Karsten Hopp 705995
! 		    gotchars(typebuf.tb_buf, 1);
Karsten Hopp 705995
  		    cmd_silent = FALSE;
Karsten Hopp 705995
  
Karsten Hopp 705995
  		    break;
Karsten Hopp 705995
--- 1962,1974 ----
Karsten Hopp 705995
  			c = Ctrl_C;
Karsten Hopp 705995
  		    flush_buffers(TRUE);	/* flush all typeahead */
Karsten Hopp 705995
  
Karsten Hopp 705995
! 		    if (advance)
Karsten Hopp 705995
! 		    {
Karsten Hopp 705995
! 			/* Also record this character, it might be needed to
Karsten Hopp 705995
! 			 * get out of Insert mode. */
Karsten Hopp 705995
! 			*typebuf.tb_buf = c;
Karsten Hopp 705995
! 			gotchars(typebuf.tb_buf, 1);
Karsten Hopp 705995
! 		    }
Karsten Hopp 705995
  		    cmd_silent = FALSE;
Karsten Hopp 705995
  
Karsten Hopp 705995
  		    break;
Karsten Hopp 705995
*** ../vim-7.0.113/src/version.c	Tue Oct  3 15:22:00 2006
Karsten Hopp 705995
--- src/version.c	Tue Oct  3 15:34:14 2006
Karsten Hopp 705995
***************
Karsten Hopp 705995
*** 668,669 ****
Karsten Hopp 705995
--- 668,671 ----
Karsten Hopp 705995
  {   /* Add new patch number below this line */
Karsten Hopp 705995
+ /**/
Karsten Hopp 705995
+     114,
Karsten Hopp 705995
  /**/
Karsten Hopp 705995
Karsten Hopp 705995
-- 
Karsten Hopp 705995
Sometimes you can protect millions of dollars in your budget simply by buying
Karsten Hopp 705995
a bag of cookies, dropping it on the budget anylyst's desk, and saying
Karsten Hopp 705995
something deeply personal such as "How was your weekend, big guy?"
Karsten Hopp 705995
				(Scott Adams - The Dilbert principle)
Karsten Hopp 705995
Karsten Hopp 705995
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 705995
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 705995
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp 705995
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///