0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

updated for version 7.0178

This commit is contained in:
Bram Moolenaar
2005-12-29 22:45:34 +00:00
parent 371baa928d
commit 86e01085a1
4 changed files with 16 additions and 11 deletions

View File

@@ -1491,7 +1491,7 @@ retry:
else
{
u8c = utf_ptr2char(src);
if (u8c > 0xffff)
if (u8c > 0xffff || (*src >= 0x80 && bytelen == 1))
found_bad = TRUE;
ucs2buf[0] = u8c;
ucs2len = 1;