1
0
forked from aniani/vim

patch 8.2.0451: Win32: double-width character displayed incorrectly

Problem:    Win32: double-width character displayed incorrectly.
Solution:   First move the cursor to the first column. (Nobuhiro Takasaki,
            closes #5848)
This commit is contained in:
Bram Moolenaar
2020-03-26 15:39:53 +01:00
parent 7d941ee032
commit 82e743c5b3
2 changed files with 8 additions and 0 deletions

View File

@@ -5821,6 +5821,12 @@ gotoxy(
if (!USE_VTP) if (!USE_VTP)
{ {
// There are reports of double-width characters not displayed
// correctly. This workaround should fix it, similar to how it's done
// for VTP.
g_coord.X = 0;
SetConsoleCursorPosition(g_hConOut, g_coord);
// external cursor coords are 1-based; internal are 0-based // external cursor coords are 1-based; internal are 0-based
g_coord.X = x - 1; g_coord.X = x - 1;
g_coord.Y = y - 1; g_coord.Y = y - 1;

View File

@@ -738,6 +738,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
451,
/**/ /**/
450, 450,
/**/ /**/