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
This commit is contained in:
Florian Walch
2014-12-26 16:49:44 +01:00
parent cab88790bc
commit e27460b60c
3 changed files with 14 additions and 3 deletions

View File

@@ -1775,7 +1775,7 @@ static int vgetorpeek(int advance)
if (c1 == K_SPECIAL)
nolmaplen = 2;
else {
LANGMAP_ADJUST(c1, TRUE);
LANGMAP_ADJUST(c1, (State & INSERT) == 0);
nolmaplen = 0;
}
/* First try buffer-local mappings. */