From e27460b60cb3d725ecfe8ba34438642fdb174280 Mon Sep 17 00:00:00 2001 From: Florian Walch Date: Fri, 26 Dec 2014 16:49:44 +0100 Subject: vim-patch:7.4.552 Problem: Langmap applies to Insert mode expression mappings. Solution: Check for Insert mode. (Daniel Hahler) https://code.google.com/p/vim/source/detail?r=v7-4-552 --- test/functional/legacy/mapping_spec.lua | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'test/functional/legacy/mapping_spec.lua') diff --git a/test/functional/legacy/mapping_spec.lua b/test/functional/legacy/mapping_spec.lua index 46d29d1692..1451b268c5 100644 --- a/test/functional/legacy/mapping_spec.lua +++ b/test/functional/legacy/mapping_spec.lua @@ -18,9 +18,20 @@ describe('mapping', function() execute('inoreab чкпр vim') feed('GAчкпр ') + -- langmap should not get remapped in insert mode. + execute('inoremap { FAIL_ilangmap') + execute('set langmap=+{ langnoremap') + feed('o+') + + -- expr mapping with langmap. + execute('inoremap { "FAIL_iexplangmap"') + feed('o+') + -- Assert buffer contents. expect([[ test starts here: - vim]]) + vim + + + +]]) end) end) -- cgit