forked from aniani/vim
patch 8.2.0490: Win32: VTP doesn't respect 'restorescreen'
Problem: Win32: VTP doesn't respect 'restorescreen'. Solution: Use escape codes to switch to alternate screen. (Nobuhiro Takasaki, closes #5872)
This commit is contained in:
@@ -5431,6 +5431,9 @@ termcap_mode_start(void)
|
|||||||
if (g_fTermcapMode)
|
if (g_fTermcapMode)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (!p_rs && USE_VTP)
|
||||||
|
vtp_printf("\033[?1049h");
|
||||||
|
|
||||||
SaveConsoleBuffer(&g_cbNonTermcap);
|
SaveConsoleBuffer(&g_cbNonTermcap);
|
||||||
|
|
||||||
if (g_cbTermcap.IsValid)
|
if (g_cbTermcap.IsValid)
|
||||||
@@ -5530,6 +5533,9 @@ termcap_mode_end(void)
|
|||||||
SetConsoleCursorPosition(g_hConOut, coord);
|
SetConsoleCursorPosition(g_hConOut, coord);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!p_rs && USE_VTP)
|
||||||
|
vtp_printf("\033[?1049l");
|
||||||
|
|
||||||
g_fTermcapMode = FALSE;
|
g_fTermcapMode = FALSE;
|
||||||
}
|
}
|
||||||
#endif // FEAT_GUI_MSWIN
|
#endif // FEAT_GUI_MSWIN
|
||||||
|
@@ -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 */
|
||||||
|
/**/
|
||||||
|
490,
|
||||||
/**/
|
/**/
|
||||||
489,
|
489,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user