diff options
author | Bram Moolenaar <Bram@vim.org> | 2015-11-10 14:35:18 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2015-11-10 14:35:18 +0100 |
commit | 72f4cc4a987d123c0ed909c85b9a05f65cef7202 (patch) | |
tree | 1bc60bc28234d1b7dd050f8b95bebb577da9b736 /src/ui.c | |
parent | e01f4f86cef7bed3cb99b26f9f57d86f6eb5fe1a (diff) | |
download | vim-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.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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 |