Skip to content

Commit c5896f9

Browse files
committed
updated for version 7.4.374
Problem: Character after "fb" command not mapped if it might be a composing character. Solution: Don't disable mapping when looking for a composing character. (Jacob Niehus)
1 parent 81cbb88 commit c5896f9

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/normal.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1076,7 +1076,10 @@ normal_cmd(oap, toplevel)
10761076
#ifdef FEAT_MBYTE
10771077
/* When getting a text character and the next character is a
10781078
* multi-byte character, it could be a composing character.
1079-
* However, don't wait for it to arrive. */
1079+
* However, don't wait for it to arrive. Also, do enable mapping,
1080+
* because if it's put back with vungetc() it's too late to apply
1081+
* mapping. */
1082+
--no_mapping;
10801083
while (enc_utf8 && lang && (c = vpeekc()) > 0
10811084
&& (c >= 0x100 || MB_BYTE2LEN(vpeekc()) > 1))
10821085
{
@@ -1091,6 +1094,7 @@ normal_cmd(oap, toplevel)
10911094
else
10921095
ca.ncharC2 = c;
10931096
}
1097+
++no_mapping;
10941098
#endif
10951099
}
10961100
--no_mapping;

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+
374,
737739
/**/
738740
373,
739741
/**/

0 commit comments

Comments
 (0)