0
0
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:
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 # 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

View File

@@ -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,
/**/ /**/