mirror of
https://github.com/vim/vim.git
synced 2025-09-26 04:04:07 -04:00
updated for version 7.4.589
Problem: In the MS-Windows console Vim can't handle greek characters when encoding is utf-8. Solution: Escape K_NUL. (Yasuhiro Matsumoto)
This commit is contained in:
@@ -1814,18 +1814,22 @@ mch_inchar(
|
|||||||
if (conv)
|
if (conv)
|
||||||
{
|
{
|
||||||
char_u *p = typeahead + typeaheadlen;
|
char_u *p = typeahead + typeaheadlen;
|
||||||
char_u *e = typeahead + TYPEAHEADLEN;
|
|
||||||
|
|
||||||
while (*p && p < e)
|
if (*p != K_NUL)
|
||||||
{
|
{
|
||||||
if (*p == K_NUL)
|
char_u *e = typeahead + TYPEAHEADLEN;
|
||||||
|
|
||||||
|
while (*p && p < e)
|
||||||
{
|
{
|
||||||
|
if (*p == K_NUL)
|
||||||
|
{
|
||||||
|
++p;
|
||||||
|
mch_memmove(p + 1, p, ((size_t)(e - p)) - 1);
|
||||||
|
*p = 3;
|
||||||
|
++n;
|
||||||
|
}
|
||||||
++p;
|
++p;
|
||||||
mch_memmove(p + 1, p, ((size_t)(e - p)) - 1);
|
|
||||||
*p = 3;
|
|
||||||
++n;
|
|
||||||
}
|
}
|
||||||
++p;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -741,6 +741,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 */
|
||||||
|
/**/
|
||||||
|
589,
|
||||||
/**/
|
/**/
|
||||||
588,
|
588,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user