Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9d99f26

Browse files
committed
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)
1 parent f986f71 commit 9d99f26

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/getchar.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2731,6 +2731,11 @@ vgetorpeek(advance)
27312731
}
27322732
if (c < 0)
27332733
continue; /* end of input script reached */
2734+
2735+
/* Allow mapping for just typed characters. When we get here c
2736+
* is the number of extra bytes and typebuf.tb_len is 1. */
2737+
for (n = 1; n <= c; ++n)
2738+
typebuf.tb_noremap[typebuf.tb_off + n] = RM_YES;
27342739
typebuf.tb_len += c;
27352740

27362741
/* buffer full, don't map */

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -734,6 +734,8 @@ static char *(features[]) =
734734

735735
static int included_patches[] =
736736
{ /* Add new patch number below this line */
737+
/**/
738+
382,
737739
/**/
738740
381,
739741
/**/

0 commit comments

Comments
 (0)