mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
updated for version 7.4.382
Problem: Mapping characters may not work after typing Esc in Insert mode. Solution: Fix the noremap flags for inserted characters. (Jacob Niehus)
This commit is contained in:
parent
17529ae026
commit
20c3892e54
@ -2731,6 +2731,11 @@ vgetorpeek(advance)
|
|||||||
}
|
}
|
||||||
if (c < 0)
|
if (c < 0)
|
||||||
continue; /* end of input script reached */
|
continue; /* end of input script reached */
|
||||||
|
|
||||||
|
/* Allow mapping for just typed characters. When we get here c
|
||||||
|
* is the number of extra bytes and typebuf.tb_len is 1. */
|
||||||
|
for (n = 1; n <= c; ++n)
|
||||||
|
typebuf.tb_noremap[typebuf.tb_off + n] = RM_YES;
|
||||||
typebuf.tb_len += c;
|
typebuf.tb_len += c;
|
||||||
|
|
||||||
/* buffer full, don't map */
|
/* buffer full, don't map */
|
||||||
|
@ -734,6 +734,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 */
|
||||||
|
/**/
|
||||||
|
382,
|
||||||
/**/
|
/**/
|
||||||
381,
|
381,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user