diff --git a/src/os_win32.c b/src/os_win32.c index 939563805a..ac25d7451e 100644 --- a/src/os_win32.c +++ b/src/os_win32.c @@ -1814,18 +1814,22 @@ mch_inchar( 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; } } diff --git a/src/version.c b/src/version.c index 2f08c2495c..4e78e7f1dd 100644 --- a/src/version.c +++ b/src/version.c @@ -741,6 +741,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 589, /**/ 588, /**/