Mercurial > vim
diff src/ui.c @ 18671:df141c730008 v8.1.2327
patch 8.1.2327: cannot build with Hangul input
Commit: https://github.com/vim/vim/commit/546125869f2959480c9a0f6c448c2092d565ec15
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Nov 21 17:13:31 2019 +0100
patch 8.1.2327: cannot build with Hangul input
Problem: Cannot build with Hangul input.
Solution: Remove Hangul input support.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 21 Nov 2019 17:15:04 +0100 |
parents | bbea1f108187 |
children | fd95d4dbeb37 |
line wrap: on
line diff
--- a/src/ui.c +++ b/src/ui.c @@ -2068,12 +2068,6 @@ add_to_input_buf(char_u *s, int len) if (inbufcount + len > INBUFLEN + MAX_KEY_CODE_LEN) return; /* Shouldn't ever happen! */ -#ifdef FEAT_HANGULIN - if ((State & (INSERT|CMDLINE)) && hangul_input_state_get()) - if ((len = hangul_input_process(s, len)) == 0) - return; -#endif - while (len--) inbuf[inbufcount++] = *s++; } @@ -2100,32 +2094,6 @@ add_to_input_buf_csi(char_u *str, int le } } -#if defined(FEAT_HANGULIN) || defined(PROTO) - void -push_raw_key(char_u *s, int len) -{ - char_u *tmpbuf; - char_u *inp = s; - - /* use the conversion result if possible */ - tmpbuf = hangul_string_convert(s, &len); - if (tmpbuf != NULL) - inp = tmpbuf; - - for (; len--; inp++) - { - inbuf[inbufcount++] = *inp; - if (*inp == CSI) - { - /* Turn CSI into K_CSI. */ - inbuf[inbufcount++] = KS_EXTRA; - inbuf[inbufcount++] = (int)KE_CSI; - } - } - vim_free(tmpbuf); -} -#endif - /* Remove everything from the input buffer. Called when ^C is found */ void trash_input_buf(void)