mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
patch 7.4.1475
Problem: When using hangulinput with utf-8 a CSI character is misintepreted. Solution: Convert CSI to K_CSI. (SungHyun Nam)
This commit is contained in:
parent
5fac467474
commit
00ded43a5a
16
src/ui.c
16
src/ui.c
@ -1689,13 +1689,21 @@ push_raw_key(char_u *s, int len)
|
|||||||
|
|
||||||
tmpbuf = hangul_string_convert(s, &len);
|
tmpbuf = hangul_string_convert(s, &len);
|
||||||
if (tmpbuf != NULL)
|
if (tmpbuf != NULL)
|
||||||
|
{
|
||||||
s = tmpbuf;
|
s = tmpbuf;
|
||||||
|
|
||||||
while (len--)
|
for (; len--; s++)
|
||||||
inbuf[inbufcount++] = *s++;
|
{
|
||||||
|
inbuf[inbufcount++] = *s;
|
||||||
if (tmpbuf != NULL)
|
if (*s == CSI)
|
||||||
|
{
|
||||||
|
/* Turn CSI into K_CSI. */
|
||||||
|
inbuf[inbufcount++] = KS_EXTRA;
|
||||||
|
inbuf[inbufcount++] = (int)KE_CSI;
|
||||||
|
}
|
||||||
|
}
|
||||||
vim_free(tmpbuf);
|
vim_free(tmpbuf);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -743,6 +743,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1475,
|
||||||
/**/
|
/**/
|
||||||
1474,
|
1474,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user