summaryrefslogtreecommitdiff
path: root/src/testdir
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2014-12-14 00:43:54 +0100
committerBram Moolenaar <Bram@vim.org>2014-12-14 00:43:54 +0100
commitc68c72ea7bbc92ce7cc2c746ce6408dc6cbe06cd (patch)
tree847a39ac093febb4817bc4371d32b61327e0606b /src/testdir
parentb12db9f92ea74039bb0b4110add4232f0bf338ea (diff)
downloadvim-git-c68c72ea7bbc92ce7cc2c746ce6408dc6cbe06cd.tar.gz
updated for version 7.4.552v7.4.552
Problem: Langmap applies to Insert mode expression mappings. Solution: Check for Insert mode. (Daniel Hahler)
Diffstat (limited to 'src/testdir')
-rw-r--r--src/testdir/test_mapping.in9
-rw-r--r--src/testdir/test_mapping.ok2
2 files changed, 11 insertions, 0 deletions
diff --git a/src/testdir/test_mapping.in b/src/testdir/test_mapping.in
index e2572772c..5f895a46f 100644
--- a/src/testdir/test_mapping.in
+++ b/src/testdir/test_mapping.in
@@ -8,6 +8,15 @@ STARTTEST
:inoreab чкпр vim
GAчкпр

+
+: " langmap should not get remapped in insert mode
+:inoremap { FAIL_ilangmap
+:set langmap=+{ langnoremap
+o+
+: " expr mapping with langmap
+:inoremap <expr> { "FAIL_iexplangmap"
+o+
+
:/^test/,$w! test.out
:qa!
ENDTEST
diff --git a/src/testdir/test_mapping.ok b/src/testdir/test_mapping.ok
index abdaea6a3..8d9497658 100644
--- a/src/testdir/test_mapping.ok
+++ b/src/testdir/test_mapping.ok
@@ -1,2 +1,4 @@
test starts here:
vim
++
++