vim-patch:7.4.2306

Problem:    Default value for 'langremap' is wrong.
Solution:   Set the right value. (Jürgen Krämer)  Add a test.

da9ce2cde1
This commit is contained in:
lonerover 2017-03-22 12:52:15 +08:00
parent 53da57d27a
commit 45a13c4bbc
2 changed files with 9 additions and 1 deletions

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(1, &langnoremap)
call assert_equal(0, &langremap)
set langremap&
call assert_equal(1, &langnoremap)
call assert_equal(0, &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

@ -135,7 +135,7 @@ static const int included_patches[] = {
2309, 2309,
// 2308 NA // 2308 NA
2307, 2307,
// 2306, 2306,
2305, 2305,
// 2304 NA // 2304 NA
2303, 2303,