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:
parent
b12db9f92e
commit
c68c72ea7b
@ -2145,7 +2145,7 @@ vgetorpeek(advance)
|
|||||||
nolmaplen = 2;
|
nolmaplen = 2;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
LANGMAP_ADJUST(c1, TRUE);
|
LANGMAP_ADJUST(c1, (State & INSERT) == 0);
|
||||||
nolmaplen = 0;
|
nolmaplen = 0;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@ -8,6 +8,15 @@ STARTTEST
|
|||||||
:inoreab чкпр vim
|
:inoreab чкпр vim
|
||||||
GAчкпр
|
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
|
:/^test/,$w! test.out
|
||||||
:qa!
|
:qa!
|
||||||
ENDTEST
|
ENDTEST
|
||||||
|
@ -1,2 +1,4 @@
|
|||||||
test starts here:
|
test starts here:
|
||||||
vim
|
vim
|
||||||
|
+
|
||||||
|
+
|
||||||
|
@ -741,6 +741,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
552,
|
||||||
/**/
|
/**/
|
||||||
551,
|
551,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user