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