]> granicus.if.org Git - vim/commitdiff
patch 8.1.2132: MS-Windows: screen mess when not recognizing insider build v8.1.2132
authorBram Moolenaar <Bram@vim.org>
Thu, 10 Oct 2019 14:36:00 +0000 (16:36 +0200)
committerBram Moolenaar <Bram@vim.org>
Thu, 10 Oct 2019 14:36:00 +0000 (16:36 +0200)
Problem:    MS-Windows: screen mess when not recognizing insider build.
Solution:   Always move the cursor to the first column first. (Nobuhiro
            Takasaki, closes #5036)

src/os_win32.c
src/version.c

index ce035570db8af6055152ad6384685fd5e37afde0..9badbed41f51322d87a660948ab54e0570abe164 100644 (file)
@@ -5868,9 +5868,9 @@ gotoxy(
     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);
 
index 2dc9f9bf1ef074db555c2c087781ae4a6d7d97aa..4e0af78a45cb6314dcbad7daa9f73b129dbfa9d4 100644 (file)
@@ -753,6 +753,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2132,
 /**/
     2131,
 /**/