Mercurial > vim
comparison src/os_win32.c @ 18275:5218e26c658f v8.1.2132
patch 8.1.2132: MS-Windows: screen mess when not recognizing insider build
Commit: https://github.com/vim/vim/commit/a129974bc71fcb86e05a29387bcaba9aae2f296a
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Oct 10 16:36:00 2019 +0200
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)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 10 Oct 2019 16:45:03 +0200 |
parents | 85160a3649b9 |
children | 9f51d0cef8da |
comparison
equal
deleted
inserted
replaced
18274:f4cec6d77c86 | 18275:5218e26c658f |
---|---|
5866 SetConsoleCursorPosition(g_hConOut, g_coord); | 5866 SetConsoleCursorPosition(g_hConOut, g_coord); |
5867 } | 5867 } |
5868 else | 5868 else |
5869 { | 5869 { |
5870 // Move the cursor to the left edge of the screen to prevent screen | 5870 // Move the cursor to the left edge of the screen to prevent screen |
5871 // destruction. Insider build bug. | 5871 // destruction. Insider build bug. Always enabled because it's cheap |
5872 if (conpty_type == 3) | 5872 // and avoids mistakes with recognizing the build. |
5873 vtp_printf("\033[%d;%dH", g_coord.Y + 1, 1); | 5873 vtp_printf("\033[%d;%dH", g_coord.Y + 1, 1); |
5874 | 5874 |
5875 vtp_printf("\033[%d;%dH", y, x); | 5875 vtp_printf("\033[%d;%dH", y, x); |
5876 | 5876 |
5877 g_coord.X = x - 1; | 5877 g_coord.X = x - 1; |
5878 g_coord.Y = y - 1; | 5878 g_coord.Y = y - 1; |