0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.1.2327: cannot build with Hangul input

Problem:    Cannot build with Hangul input.
Solution:   Remove Hangul input support.
This commit is contained in:
Bram Moolenaar
2019-11-21 17:13:31 +01:00
parent 10455d43fe
commit 546125869f
21 changed files with 27 additions and 2006 deletions

View File

@@ -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 len)
}
}
#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)