0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

updated for version 7.1-330

This commit is contained in:
Bram Moolenaar
2008-06-21 14:30:28 +00:00
parent 88f3d3a267
commit 176dd1e03c
2 changed files with 15 additions and 8 deletions

View File

@@ -1880,15 +1880,20 @@ ins_bytes_len(p, len)
# ifdef FEAT_MBYTE
int n;
if (has_mbyte)
for (i = 0; i < len; i += n)
{
if (enc_utf8)
/* avoid reading past p[len] */
n = utfc_ptr2len_len(p + i, len - i);
else
n = (*mb_ptr2len)(p + i);
ins_char_bytes(p + i, n);
}
# else
else
# endif
for (i = 0; i < len; ++i)
ins_char(p[i]);
# endif
}
#endif

View File

@@ -666,6 +666,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
330,
/**/
329,
/**/