forked from aniani/vim
patch 9.1.1208: MS-Windows: not correctly restoring alternate screen on Win 10
Problem: MS-Windows: not correctly restoring alternate screen on Win 10 after ssh (Daniel Viberg) Solution: return a bit later in RestoreConsoleBuffer() (Christopher Plewright) fixes: #16418 closes: #16897 Signed-off-by: Christopher Plewright <chris@createng.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
1064426d15
commit
ab281f8b34
@@ -3284,10 +3284,6 @@ RestoreConsoleBuffer(
|
|||||||
SMALL_RECT WriteRegion;
|
SMALL_RECT WriteRegion;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
// VTP uses alternate screen buffer.
|
|
||||||
// No need to restore buffer contents.
|
|
||||||
if (use_alternate_screen_buffer)
|
|
||||||
return TRUE;
|
|
||||||
|
|
||||||
if (cb == NULL || !cb->IsValid)
|
if (cb == NULL || !cb->IsValid)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
@@ -3319,6 +3315,11 @@ RestoreConsoleBuffer(
|
|||||||
if (!SetConsoleWindowInfo(g_hConOut, TRUE, &cb->Info.srWindow))
|
if (!SetConsoleWindowInfo(g_hConOut, TRUE, &cb->Info.srWindow))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
|
// VTP uses alternate screen buffer.
|
||||||
|
// No need to restore buffer contents.
|
||||||
|
if (use_alternate_screen_buffer)
|
||||||
|
return TRUE;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Restore the screen buffer contents.
|
* Restore the screen buffer contents.
|
||||||
*/
|
*/
|
||||||
|
@@ -704,6 +704,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 */
|
||||||
|
/**/
|
||||||
|
1208,
|
||||||
/**/
|
/**/
|
||||||
1207,
|
1207,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user