• R/O
  • SSH

vim: Commit

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


Commit MetaInfo

Revisãoa2fa2fc0f4030836595881019737e5d5a9f607bb (tree)
Hora2020-04-02 01:30:03
AutorBram Moolenaar <Bram@vim....>
CommiterBram Moolenaar

Mensagem de Log

patch 8.2.0490: Win32: VTP doesn't respect 'restorescreen'

Commit: https://github.com/vim/vim/commit/0afdcf8601792ee751984265b49fc2ca6f8ea858
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Apr 1 18:29:10 2020 +0200

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)

Mudança Sumário

Diff

diff -r 10a4e7a33b76 -r a2fa2fc0f403 src/os_win32.c
--- a/src/os_win32.c Wed Apr 01 16:45:06 2020 +0200
+++ b/src/os_win32.c Wed Apr 01 18:30:03 2020 +0200
@@ -5431,6 +5431,9 @@
54315431 if (g_fTermcapMode)
54325432 return;
54335433
5434+ if (!p_rs && USE_VTP)
5435+ vtp_printf("\033[?1049h");
5436+
54345437 SaveConsoleBuffer(&g_cbNonTermcap);
54355438
54365439 if (g_cbTermcap.IsValid)
@@ -5530,6 +5533,9 @@
55305533 SetConsoleCursorPosition(g_hConOut, coord);
55315534 }
55325535
5536+ if (!p_rs && USE_VTP)
5537+ vtp_printf("\033[?1049l");
5538+
55335539 g_fTermcapMode = FALSE;
55345540 }
55355541 #endif // FEAT_GUI_MSWIN
diff -r 10a4e7a33b76 -r a2fa2fc0f403 src/version.c
--- a/src/version.c Wed Apr 01 16:45:06 2020 +0200
+++ b/src/version.c Wed Apr 01 18:30:03 2020 +0200
@@ -739,6 +739,8 @@
739739 static int included_patches[] =
740740 { /* Add new patch number below this line */
741741 /**/
742+ 490,
743+/**/
742744 489,
743745 /**/
744746 488,
Show on old repository browser