mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-patch:7.4.773 #3066
Problem: 'langmap' is used in command-line mode when checking for mappings. Solution: Do not use 'langmap' in command-line mode. (Larry Velazquez) Original patch: https://code.google.com/p/vim/source/detail?r=5b1eefbf9a532f32a66fa13abbd671488aaafd5c
This commit is contained in:
committed by
Justin M. Keyes
parent
3df37a8424
commit
990c0350ab
@@ -23,16 +23,27 @@ describe('mapping', function()
|
||||
execute('set langmap=+{ langnoremap')
|
||||
feed('o+<esc>')
|
||||
|
||||
-- expr mapping with langmap.
|
||||
-- Insert mode expr mapping with langmap.
|
||||
execute('inoremap <expr> { "FAIL_iexplangmap"')
|
||||
feed('o+<esc>')
|
||||
|
||||
-- langmap should not get remapped in cmdline mode.
|
||||
execute('cnoremap { FAIL_clangmap')
|
||||
feed('o+<esc>')
|
||||
execute('cunmap {')
|
||||
|
||||
-- cmdline mode expr mapping with langmap.
|
||||
execute('cnoremap <expr> { "FAIL_cexplangmap"')
|
||||
feed('o+<esc>')
|
||||
execute('cunmap {')
|
||||
|
||||
-- Assert buffer contents.
|
||||
expect([[
|
||||
test starts here:
|
||||
vim
|
||||
+
|
||||
+
|
||||
+
|
||||
+]])
|
||||
end)
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user