3ef2ca
To: vim_dev@googlegroups.com
3ef2ca
Subject: Patch 7.4.382
3ef2ca
Fcc: outbox
3ef2ca
From: Bram Moolenaar <Bram@moolenaar.net>
3ef2ca
Mime-Version: 1.0
3ef2ca
Content-Type: text/plain; charset=UTF-8
3ef2ca
Content-Transfer-Encoding: 8bit
3ef2ca
------------
3ef2ca
3ef2ca
Patch 7.4.382
3ef2ca
Problem:    Mapping characters may not work after typing Esc in Insert mode.
3ef2ca
Solution:   Fix the noremap flags for inserted characters. (Jacob Niehus)
3ef2ca
Files:	    src/getchar.c
3ef2ca
3ef2ca
3ef2ca
*** ../vim-7.4.381/src/getchar.c	2014-06-25 14:39:35.102348584 +0200
3ef2ca
--- src/getchar.c	2014-07-23 20:10:25.651792765 +0200
3ef2ca
***************
3ef2ca
*** 2731,2736 ****
3ef2ca
--- 2731,2741 ----
3ef2ca
  		}
3ef2ca
  		if (c < 0)
3ef2ca
  		    continue;	/* end of input script reached */
3ef2ca
+ 
3ef2ca
+ 		/* Allow mapping for just typed characters. When we get here c
3ef2ca
+ 		 * is the number of extra bytes and typebuf.tb_len is 1. */
3ef2ca
+ 		for (n = 1; n <= c; ++n)
3ef2ca
+ 		    typebuf.tb_noremap[typebuf.tb_off + n] = RM_YES;
3ef2ca
  		typebuf.tb_len += c;
3ef2ca
  
3ef2ca
  		/* buffer full, don't map */
3ef2ca
*** ../vim-7.4.381/src/version.c	2014-07-23 17:39:21.815857910 +0200
3ef2ca
--- src/version.c	2014-07-23 18:26:42.663837492 +0200
3ef2ca
***************
3ef2ca
*** 736,737 ****
3ef2ca
--- 736,739 ----
3ef2ca
  {   /* Add new patch number below this line */
3ef2ca
+ /**/
3ef2ca
+     382,
3ef2ca
  /**/
3ef2ca
3ef2ca
-- 
3ef2ca
DENNIS: Oh, very nice. King, eh!  I expect you've got a palace and fine
3ef2ca
        clothes and courtiers and plenty of food.  And how d'you get that?  By
3ef2ca
        exploiting the workers! By hanging on to outdated imperialist dogma
3ef2ca
        which perpetuates the social and economic differences in our society!
3ef2ca
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
3ef2ca
3ef2ca
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
3ef2ca
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
3ef2ca
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
3ef2ca
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///