Skip to content

Commit 88c8df3

Browse files
committed
Merge remote-tracking branch 'vim/master'
2 parents 33ed602 + 560379d commit 88c8df3

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/misc1.c

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2177,16 +2177,19 @@ ins_bytes_len(char_u *p, int len)
21772177
void
21782178
ins_char(int c)
21792179
{
2180-
#if defined(FEAT_MBYTE) || defined(PROTO)
21812180
char_u buf[MB_MAXBYTES + 1];
2182-
int n;
2181+
int n = 1;
21832182

2183+
#if defined(FEAT_MBYTE) || defined(PROTO)
21842184
n = (*mb_char2bytes)(c, buf);
21852185

21862186
/* When "c" is 0x100, 0x200, etc. we don't want to insert a NUL byte.
21872187
* Happens for CTRL-Vu9900. */
21882188
if (buf[0] == 0)
21892189
buf[0] = '\n';
2190+
#else
2191+
buf[0] = c;
2192+
#endif
21902193

21912194
ins_char_bytes(buf, n);
21922195
}
@@ -2195,7 +2198,6 @@ ins_char(int c)
21952198
ins_char_bytes(char_u *buf, int charlen)
21962199
{
21972200
int c = buf[0];
2198-
#endif
21992201
int newlen; /* nr of bytes inserted */
22002202
int oldlen; /* nr of bytes deleted (0 when not replacing) */
22012203
char_u *p;
@@ -2218,11 +2220,7 @@ ins_char_bytes(char_u *buf, int charlen)
22182220

22192221
/* The lengths default to the values for when not replacing. */
22202222
oldlen = 0;
2221-
#ifdef FEAT_MBYTE
22222223
newlen = charlen;
2223-
#else
2224-
newlen = 1;
2225-
#endif
22262224

22272225
if (State & REPLACE_FLAG)
22282226
{

src/version.c

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

780780
static int included_patches[] =
781781
{ /* Add new patch number below this line */
782+
/**/
783+
211,
782784
/**/
783785
210,
784786
/**/

0 commit comments

Comments
 (0)