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

patch 7.4.913

Problem:    No utf-8 support for the hangul input feature.
Solution:   Add utf-8 support. (Namsh)
This commit is contained in:
Bram Moolenaar
2015-11-10 14:35:18 +01:00
parent e01f4f86ce
commit 72f4cc4a98
8 changed files with 121 additions and 32 deletions

View File

@@ -1723,8 +1723,17 @@ push_raw_key(s, len)
char_u *s;
int len;
{
char_u *tmpbuf;
tmpbuf = hangul_string_convert(s, &len);
if (tmpbuf != NULL)
s = tmpbuf;
while (len--)
inbuf[inbufcount++] = *s++;
if (tmpbuf != NULL)
vim_free(tmpbuf);
}
#endif