mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
updated for version 7.1-330
This commit is contained in:
21
src/misc1.c
21
src/misc1.c
@@ -1880,15 +1880,20 @@ ins_bytes_len(p, len)
|
|||||||
# ifdef FEAT_MBYTE
|
# ifdef FEAT_MBYTE
|
||||||
int n;
|
int n;
|
||||||
|
|
||||||
for (i = 0; i < len; i += n)
|
if (has_mbyte)
|
||||||
{
|
for (i = 0; i < len; i += n)
|
||||||
n = (*mb_ptr2len)(p + i);
|
{
|
||||||
ins_char_bytes(p + i, n);
|
if (enc_utf8)
|
||||||
}
|
/* avoid reading past p[len] */
|
||||||
# else
|
n = utfc_ptr2len_len(p + i, len - i);
|
||||||
for (i = 0; i < len; ++i)
|
else
|
||||||
ins_char(p[i]);
|
n = (*mb_ptr2len)(p + i);
|
||||||
|
ins_char_bytes(p + i, n);
|
||||||
|
}
|
||||||
|
else
|
||||||
# endif
|
# endif
|
||||||
|
for (i = 0; i < len; ++i)
|
||||||
|
ins_char(p[i]);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@@ -666,6 +666,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 */
|
||||||
|
/**/
|
||||||
|
330,
|
||||||
/**/
|
/**/
|
||||||
329,
|
329,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user