Mercurial > vim
changeset 10070:09c7df6f8dd3 v7.4.2306
commit https://github.com/vim/vim/commit/da9ce2cde11ddd0e16cdfbab6d4ac4e8110218e1
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Sep 2 19:34:10 2016 +0200
patch 7.4.2306
Problem: Default value for 'langremap' is wrong.
Solution: Set the right value. (J?rgen Kr?mer) Add a test.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Fri, 02 Sep 2016 19:45:08 +0200 |
parents | 3f5f6113de35 |
children | bbd00d8aef61 |
files | src/option.c src/testdir/test_mapping.vim src/version.c |
diffstat | 3 files changed, 11 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/option.c +++ b/src/option.c @@ -1711,7 +1711,7 @@ static struct vimoption options[] = #else (char_u *)NULL, PV_NONE, #endif - {(char_u *)FALSE, (char_u *)0L} SCRIPTID_INIT}, + {(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,
--- a/src/testdir/test_mapping.vim +++ b/src/testdir/test_mapping.vim @@ -72,6 +72,14 @@ func Test_map_langmap() 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+\<Esc>", "xt")