Blame SOURCES/7.4.382

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