mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-patch: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) https://code.google.com/p/vim/source/detail?r=v7-4-382
This commit is contained in:
parent
53d15c2c25
commit
c5c506666c
@ -2209,6 +2209,12 @@ static int vgetorpeek(int 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 */
|
||||||
|
@ -213,7 +213,7 @@ static int included_patches[] = {
|
|||||||
//385,
|
//385,
|
||||||
//384 NA
|
//384 NA
|
||||||
383,
|
383,
|
||||||
//382,
|
382,
|
||||||
381,
|
381,
|
||||||
//380 NA
|
//380 NA
|
||||||
379,
|
379,
|
||||||
|
Loading…
Reference in New Issue
Block a user