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