patch 8.1.2132: MS-Windows: screen mess when not recognizing insider build
Problem: MS-Windows: screen mess when not recognizing insider build.
Solution: Always move the cursor to the first column first. (Nobuhiro
Takasaki, closes #5036)
diff --git a/src/os_win32.c b/src/os_win32.c
index ce03557..9badbed 100644
--- a/src/os_win32.c
+++ b/src/os_win32.c
@@ -5868,9 +5868,9 @@
else
{
// Move the cursor to the left edge of the screen to prevent screen
- // destruction. Insider build bug.
- if (conpty_type == 3)
- vtp_printf("\033[%d;%dH", g_coord.Y + 1, 1);
+ // destruction. Insider build bug. Always enabled because it's cheap
+ // and avoids mistakes with recognizing the build.
+ vtp_printf("\033[%d;%dH", g_coord.Y + 1, 1);
vtp_printf("\033[%d;%dH", y, x);