summaryrefslogtreecommitdiff
path: root/src/ui.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2015-11-10 14:35:18 +0100
committerBram Moolenaar <Bram@vim.org>2015-11-10 14:35:18 +0100
commit72f4cc4a987d123c0ed909c85b9a05f65cef7202 (patch)
tree1bc60bc28234d1b7dd050f8b95bebb577da9b736 /src/ui.c
parente01f4f86cef7bed3cb99b26f9f57d86f6eb5fe1a (diff)
downloadvim-72f4cc4a987d123c0ed909c85b9a05f65cef7202.zip
patch 7.4.913
Problem: No utf-8 support for the hangul input feature. Solution: Add utf-8 support. (Namsh)
Diffstat (limited to 'src/ui.c')
-rw-r--r--src/ui.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/ui.c b/src/ui.c
index e0e54d924..5438a38c5 100644
--- a/src/ui.c
+++ b/src/ui.c
@@ -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