Permalink
Browse files

patch 7.4.2306

Problem:    Default value for 'langremap' is wrong.
Solution:   Set the right value. (Jürgen Krämer)  Add a test.
  • Loading branch information...
1 parent 19a1669 commit da9ce2cde11ddd0e16cdfbab6d4ac4e8110218e1 @brammool brammool committed Sep 2, 2016
Showing with 11 additions and 1 deletion.
  1. +1 −1 src/option.c
  2. +8 −0 src/testdir/test_mapping.vim
  3. +2 −0 src/version.c
View
@@ -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,
@@ -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")
View
@@ -764,6 +764,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 2306,
+/**/
2305,
/**/
2304,

0 comments on commit da9ce2c

Please sign in to comment.