From 990c0350aba4553baa980ff9305d67ebae1b2aef Mon Sep 17 00:00:00 2001 From: Marco Hinz Date: Tue, 21 Jul 2015 15:11:56 +0200 Subject: 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 --- test/functional/legacy/mapping_spec.lua | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/functional/legacy/mapping_spec.lua b/test/functional/legacy/mapping_spec.lua index c387d7484c..0843506827 100644 --- a/test/functional/legacy/mapping_spec.lua +++ b/test/functional/legacy/mapping_spec.lua @@ -23,16 +23,27 @@ describe('mapping', function() execute('set langmap=+{ langnoremap') feed('o+') - -- expr mapping with langmap. + -- Insert mode expr mapping with langmap. execute('inoremap { "FAIL_iexplangmap"') feed('o+') + -- langmap should not get remapped in cmdline mode. + execute('cnoremap { FAIL_clangmap') + feed('o+') + execute('cunmap {') + + -- cmdline mode expr mapping with langmap. + execute('cnoremap { "FAIL_cexplangmap"') + feed('o+') + execute('cunmap {') -- Assert buffer contents. expect([[ test starts here: vim + + + + + +]]) end) end) -- cgit