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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user