Skip to content

Commit da9ce2c

Browse files
committed
patch 7.4.2306
Problem: Default value for 'langremap' is wrong. Solution: Set the right value. (Jürgen Krämer) Add a test.
1 parent 19a1669 commit da9ce2c

3 files changed

Lines changed: 11 additions & 1 deletion

File tree

src/option.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1711,7 +1711,7 @@ static struct vimoption options[] =
17111711
#else
17121712
(char_u *)NULL, PV_NONE,
17131713
#endif
1714-
{(char_u *)FALSE, (char_u *)0L} SCRIPTID_INIT},
1714+
{(char_u *)TRUE, (char_u *)0L} SCRIPTID_INIT},
17151715
{"laststatus", "ls", P_NUM|P_VI_DEF|P_RALL,
17161716
#ifdef FEAT_WINDOWS
17171717
(char_u *)&p_ls, PV_NONE,

src/testdir/test_mapping.vim

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,14 @@ func Test_map_langmap()
7272
set nolangremap
7373
call assert_equal(1, &langnoremap)
7474

75+
" check default values
76+
set langnoremap&
77+
call assert_equal(0, &langnoremap)
78+
call assert_equal(1, &langremap)
79+
set langremap&
80+
call assert_equal(0, &langnoremap)
81+
call assert_equal(1, &langremap)
82+
7583
" langmap should not apply in insert mode, 'langremap' doesn't matter
7684
set langmap=+{ nolangremap
7785
call feedkeys("Go+\<Esc>", "xt")

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -763,6 +763,8 @@ static char *(features[]) =
763763

764764
static int included_patches[] =
765765
{ /* Add new patch number below this line */
766+
/**/
767+
2306,
766768
/**/
767769
2305,
768770
/**/

0 commit comments

Comments
 (0)