073263
To: vim_dev@googlegroups.com
073263
Subject: Patch 7.4.552
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.552
073263
Problem:    Langmap applies to Insert mode expression mappings.
073263
Solution:   Check for Insert mode. (Daniel Hahler)
073263
Files:	    src/getchar.c, src/testdir/test_mapping.in,
073263
	    src/testdir/test_mapping.ok
073263
073263
073263
*** ../vim-7.4.551/src/getchar.c	2014-10-21 19:35:28.406284296 +0200
073263
--- src/getchar.c	2014-12-14 00:35:48.712903309 +0100
073263
***************
073263
*** 2145,2151 ****
073263
  			    nolmaplen = 2;
073263
  			else
073263
  			{
073263
! 			    LANGMAP_ADJUST(c1, TRUE);
073263
  			    nolmaplen = 0;
073263
  			}
073263
  #endif
073263
--- 2145,2151 ----
073263
  			    nolmaplen = 2;
073263
  			else
073263
  			{
073263
! 			    LANGMAP_ADJUST(c1, (State & INSERT) == 0);
073263
  			    nolmaplen = 0;
073263
  			}
073263
  #endif
073263
*** ../vim-7.4.551/src/testdir/test_mapping.in	2014-10-22 22:08:58.386493141 +0200
073263
--- src/testdir/test_mapping.in	2014-12-14 00:35:12.713288209 +0100
073263
***************
073263
*** 8,13 ****
073263
--- 8,22 ----
073263
  :inoreab чкпр   vim
073263
  GAчкпр 
073263
  ?
073263
+ 
073263
+ : " langmap should not get remapped in insert mode
073263
+ :inoremap { FAIL_ilangmap
073263
+ :set langmap=+{ langnoremap
073263
+ o+?
073263
+ : " expr mapping with langmap
073263
+ :inoremap <expr> { "FAIL_iexplangmap"
073263
+ o+?
073263
+ 
073263
  :/^test/,$w! test.out
073263
  :qa!
073263
  ENDTEST
073263
*** ../vim-7.4.551/src/testdir/test_mapping.ok	2014-10-21 16:22:01.407175226 +0200
073263
--- src/testdir/test_mapping.ok	2014-12-14 00:29:32.216931811 +0100
073263
***************
073263
*** 1,2 ****
073263
--- 1,4 ----
073263
  test starts here:
073263
  vim
073263
+ +
073263
+ +
073263
*** ../vim-7.4.551/src/version.c	2014-12-13 22:00:18.161279370 +0100
073263
--- src/version.c	2014-12-14 00:27:36.310171797 +0100
073263
***************
073263
*** 743,744 ****
073263
--- 743,746 ----
073263
  {   /* Add new patch number below this line */
073263
+ /**/
073263
+     552,
073263
  /**/
073263
073263
-- 
073263
Engineers are widely recognized as superior marriage material: intelligent,
073263
dependable, employed, honest, and handy around the house.
073263
				(Scott Adams - The Dilbert principle)
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    ///