Problem: In the MS-Windows console Vim can't handle greek characters when
encoding is utf-8.
Solution: Escape K_NUL. (Yasuhiro Matsumoto)
if (conv)
{
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;
- mch_memmove(p + 1, p, ((size_t)(e - p)) - 1);
- *p = 3;
- ++n;
}
- ++p;
}
}
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 589,
/**/
588,
/**/