commit | 72f4cc4a987d123c0ed909c85b9a05f65cef7202 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Tue Nov 10 14:35:18 2015 +0100 |
committer | Bram Moolenaar <Bram@vim.org> | Tue Nov 10 14:35:18 2015 +0100 |
tree | 1bc60bc28234d1b7dd050f8b95bebb577da9b736 | |
parent | e01f4f86cef7bed3cb99b26f9f57d86f6eb5fe1a [diff] [blame] |
patch 7.4.913 Problem: No utf-8 support for the hangul input feature. Solution: Add utf-8 support. (Namsh)
diff --git a/src/ui.c b/src/ui.c index e0e54d9..5438a38 100644 --- a/src/ui.c +++ b/src/ui.c
@@ -1723,8 +1723,17 @@ 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