1
0
forked from aniani/vim

patch 7.4.2306

Problem:    Default value for 'langremap' is wrong.
Solution:   Set the right value. (Jürgen Krämer)  Add a test.
This commit is contained in:
Bram Moolenaar
2016-09-02 19:34:10 +02:00
parent 19a1669ffc
commit da9ce2cde1
3 changed files with 11 additions and 1 deletions

View File

@@ -1711,7 +1711,7 @@ static struct vimoption options[] =
#else #else
(char_u *)NULL, PV_NONE, (char_u *)NULL, PV_NONE,
#endif #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, {"laststatus", "ls", P_NUM|P_VI_DEF|P_RALL,
#ifdef FEAT_WINDOWS #ifdef FEAT_WINDOWS
(char_u *)&p_ls, PV_NONE, (char_u *)&p_ls, PV_NONE,

View File

@@ -72,6 +72,14 @@ func Test_map_langmap()
set nolangremap set nolangremap
call assert_equal(1, &langnoremap) 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 " langmap should not apply in insert mode, 'langremap' doesn't matter
set langmap=+{ nolangremap set langmap=+{ nolangremap
call feedkeys("Go+\<Esc>", "xt") call feedkeys("Go+\<Esc>", "xt")

View File

@@ -763,6 +763,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
2306,
/**/ /**/
2305, 2305,
/**/ /**/