To: vim_dev@googlegroups.com Subject: Patch 7.4.2306 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 7.4.2306 Problem: Default value for 'langremap' is wrong. Solution: Set the right value. (Jürgen Krämer) Add a test. Files: src/option.c, src/testdir/test_mapping.vim *** ../vim-7.4.2305/src/option.c 2016-08-29 22:48:12.157106115 +0200 --- src/option.c 2016-09-02 19:26:03.148482679 +0200 *************** *** 1711,1717 **** #else (char_u *)NULL, PV_NONE, #endif ! {(char_u *)FALSE, (char_u *)0L} SCRIPTID_INIT}, {"laststatus", "ls", P_NUM|P_VI_DEF|P_RALL, #ifdef FEAT_WINDOWS (char_u *)&p_ls, PV_NONE, --- 1711,1717 ---- #else (char_u *)NULL, PV_NONE, #endif ! {(char_u *)TRUE, (char_u *)0L} SCRIPTID_INIT}, {"laststatus", "ls", P_NUM|P_VI_DEF|P_RALL, #ifdef FEAT_WINDOWS (char_u *)&p_ls, PV_NONE, *** ../vim-7.4.2305/src/testdir/test_mapping.vim 2016-08-21 17:44:57.440487201 +0200 --- src/testdir/test_mapping.vim 2016-09-02 19:27:44.363612034 +0200 *************** *** 72,77 **** --- 72,85 ---- set nolangremap call assert_equal(1, &langnoremap) + " check default values + set langnoremap& + call assert_equal(0, &langnoremap) + call assert_equal(1, &langremap) + set langremap& + call assert_equal(0, &langnoremap) + call assert_equal(1, &langremap) + " langmap should not apply in insert mode, 'langremap' doesn't matter set langmap=+{ nolangremap call feedkeys("Go+\", "xt") *** ../vim-7.4.2305/src/version.c 2016-09-01 22:19:22.544165975 +0200 --- src/version.c 2016-09-02 19:29:05.214916953 +0200 *************** *** 765,766 **** --- 765,768 ---- { /* Add new patch number below this line */ + /**/ + 2306, /**/ -- Birthdays are healthy. The more you have them, the longer you live. /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///