• R/O
  • SSH

vim: Commit

Mirror of the Vim source from https://github.com/vim/vim


Commit MetaInfo

Revision25836c21ccf9f294415b12aca817dcce99485168 (tree)
Time2020-03-26 23:45:03
AuthorBram Moolenaar <Bram@vim....>
CommiterBram Moolenaar

Log Message

patch 8.2.0451: Win32: double-width character displayed incorrectly

Commit: https://github.com/vim/vim/commit/82e743c5b343847d88b958594ad3433213ef9405
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Mar 26 15:39:53 2020 +0100

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)

Change Summary

Incremental Difference

diff -r ebff027f7a7f -r 25836c21ccf9 src/os_win32.c
--- a/src/os_win32.c Thu Mar 26 14:15:04 2020 +0100
+++ b/src/os_win32.c Thu Mar 26 15:45:03 2020 +0100
@@ -5821,6 +5821,12 @@
58215821
58225822 if (!USE_VTP)
58235823 {
5824+ // There are reports of double-width characters not displayed
5825+ // correctly. This workaround should fix it, similar to how it's done
5826+ // for VTP.
5827+ g_coord.X = 0;
5828+ SetConsoleCursorPosition(g_hConOut, g_coord);
5829+
58245830 // external cursor coords are 1-based; internal are 0-based
58255831 g_coord.X = x - 1;
58265832 g_coord.Y = y - 1;
diff -r ebff027f7a7f -r 25836c21ccf9 src/version.c
--- a/src/version.c Thu Mar 26 14:15:04 2020 +0100
+++ b/src/version.c Thu Mar 26 15:45:03 2020 +0100
@@ -739,6 +739,8 @@
739739 static int included_patches[] =
740740 { /* Add new patch number below this line */
741741 /**/
742+ 451,
743+/**/
742744 450,
743745 /**/
744746 449,
Show on old repository browser