0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

updated for version 7.4.552

Problem:    Langmap applies to Insert mode expression mappings.
Solution:   Check for Insert mode. (Daniel Hahler)
This commit is contained in:
Bram Moolenaar 2014-12-14 00:43:54 +01:00
parent b12db9f92e
commit c68c72ea7b
4 changed files with 14 additions and 1 deletions

View File

@ -2145,7 +2145,7 @@ vgetorpeek(advance)
nolmaplen = 2;
else
{
LANGMAP_ADJUST(c1, TRUE);
LANGMAP_ADJUST(c1, (State & INSERT) == 0);
nolmaplen = 0;
}
#endif

View File

@ -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

View File

@ -1,2 +1,4 @@
test starts here:
vim
+
+

View File

@ -741,6 +741,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
552,
/**/
551,
/**/