summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-08-23 22:38:31 +0200
committerBram Moolenaar <Bram@vim.org>2018-08-23 22:38:31 +0200
commit2551c037e41b3c2702d3ec30ee518c11966b19e6 (patch)
tree3fe08539e8c7a140103f7c4a9916f83a2a620d77
parent7cb33a14c943c0b87dc61c1da438a443f8a43782 (diff)
downloadvim-git-2551c037e41b3c2702d3ec30ee518c11966b19e6.tar.gz
patch 8.1.0323: reverse order of VTP calls only needed the first timev8.1.0323
Problem: Reverse order of VTP calls only needed the first time. Solution: Add a flag to remember the state. (Nobuhiro Takasaki, closes #3366)
-rw-r--r--src/os_win32.c6
-rw-r--r--src/version.c2
2 files changed, 6 insertions, 2 deletions
diff --git a/src/os_win32.c b/src/os_win32.c
index dc98d6acd..2cfcecfc1 100644
--- a/src/os_win32.c
+++ b/src/os_win32.c
@@ -4046,6 +4046,7 @@ ResizeConBufAndWindow(
CONSOLE_SCREEN_BUFFER_INFO csbi; /* hold current console buffer info */
SMALL_RECT srWindowRect; /* hold the new console size */
COORD coordScreen;
+ static int resized = FALSE;
#ifdef MCH_WRITE_DUMP
if (fdDump)
@@ -4091,8 +4092,8 @@ ResizeConBufAndWindow(
coordScreen.X = xSize;
coordScreen.Y = ySize;
- // In the new console call API in reverse order
- if (!vtp_working)
+ // In the new console call API, only the first time in reverse order
+ if (!vtp_working || resized)
{
ResizeWindow(hConsole, srWindowRect);
ResizeConBuf(hConsole, coordScreen);
@@ -4101,6 +4102,7 @@ ResizeConBufAndWindow(
{
ResizeConBuf(hConsole, coordScreen);
ResizeWindow(hConsole, srWindowRect);
+ resized = TRUE;
}
}
diff --git a/src/version.c b/src/version.c
index 919d790fa..01854c85c 100644
--- a/src/version.c
+++ b/src/version.c
@@ -795,6 +795,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 323,
+/**/
322,
/**/
321,