Blame SOURCES/7.4.374

22c937
To: vim_dev@googlegroups.com
22c937
Subject: Patch 7.4.374
22c937
Fcc: outbox
22c937
From: Bram Moolenaar <Bram@moolenaar.net>
22c937
Mime-Version: 1.0
22c937
Content-Type: text/plain; charset=UTF-8
22c937
Content-Transfer-Encoding: 8bit
22c937
------------
22c937
22c937
Patch 7.4.374
22c937
Problem:    Character after "fb" command not mapped if it might be a composing
22c937
	    character.
22c937
Solution:   Don't disable mapping when looking for a composing character.
22c937
	    (Jacob Niehus)
22c937
Files:	    src/normal.c
22c937
22c937
22c937
*** ../vim-7.4.373/src/normal.c	2014-04-29 12:15:22.856032651 +0200
22c937
--- src/normal.c	2014-07-23 12:26:26.811992854 +0200
22c937
***************
22c937
*** 1076,1082 ****
22c937
  #ifdef FEAT_MBYTE
22c937
  	    /* When getting a text character and the next character is a
22c937
  	     * multi-byte character, it could be a composing character.
22c937
! 	     * However, don't wait for it to arrive. */
22c937
  	    while (enc_utf8 && lang && (c = vpeekc()) > 0
22c937
  				 && (c >= 0x100 || MB_BYTE2LEN(vpeekc()) > 1))
22c937
  	    {
22c937
--- 1076,1085 ----
22c937
  #ifdef FEAT_MBYTE
22c937
  	    /* When getting a text character and the next character is a
22c937
  	     * multi-byte character, it could be a composing character.
22c937
! 	     * However, don't wait for it to arrive. Also, do enable mapping,
22c937
! 	     * because if it's put back with vungetc() it's too late to apply
22c937
! 	     * mapping. */
22c937
! 	    --no_mapping;
22c937
  	    while (enc_utf8 && lang && (c = vpeekc()) > 0
22c937
  				 && (c >= 0x100 || MB_BYTE2LEN(vpeekc()) > 1))
22c937
  	    {
22c937
***************
22c937
*** 1091,1096 ****
22c937
--- 1094,1100 ----
22c937
  		else
22c937
  		    ca.ncharC2 = c;
22c937
  	    }
22c937
+ 	    ++no_mapping;
22c937
  #endif
22c937
  	}
22c937
  	--no_mapping;
22c937
*** ../vim-7.4.373/src/version.c	2014-07-16 23:39:50.251084976 +0200
22c937
--- src/version.c	2014-07-23 12:27:50.483992253 +0200
22c937
***************
22c937
*** 736,737 ****
22c937
--- 736,739 ----
22c937
  {   /* Add new patch number below this line */
22c937
+ /**/
22c937
+     374,
22c937
  /**/
22c937
22c937
-- 
22c937
CART DRIVER: Bring out your dead!
22c937
   There are legs stick out of windows and doors.  Two MEN are fighting in the
22c937
   mud - covered from head to foot in it.  Another MAN is on his hands in
22c937
   knees shovelling mud into his mouth.  We just catch sight of a MAN falling
22c937
   into a well.
22c937
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
22c937
22c937
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
22c937
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
22c937
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
22c937
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///