updated for version 7.4.363
Problem: In Windows console typing 0xCE does not work.
Solution: Convert 0xCE to K_NUL 3. (Nobuhiro Takasaki et al.)
diff --git a/src/term.c b/src/term.c
index 949b6fa..95c29cc 100644
--- a/src/term.c
+++ b/src/term.c
@@ -3724,7 +3724,11 @@
return;
}
+#if defined(WIN3264) && !defined(FEAT_GUI)
+ s = vim_strnsave(string, (int)STRLEN(string) + 1);
+#else
s = vim_strsave(string);
+#endif
if (s == NULL)
return;
@@ -3734,6 +3738,15 @@
STRMOVE(s, s + 1);
s[0] = term_7to8bit(string);
}
+
+#if defined(WIN3264) && !defined(FEAT_GUI)
+ if (s[0] == K_NUL)
+ {
+ STRMOVE(s + 1, s);
+ s[1] = 3;
+ }
+#endif
+
len = (int)STRLEN(s);
need_gather = TRUE; /* need to fill termleader[] */