changeset 19346:0dd8d1291439 v8.2.0231

patch 8.2.0231: silent system command may clear the screen Commit: https://github.com/vim/vim/commit/d02e508a18346ca1acb8c0c94c38e62a6ddeefe2 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Feb 8 14:22:53 2020 +0100 patch 8.2.0231: silent system command may clear the screen Problem: Silent system command may clear the screen. Solution: Do not clear the screen in t_te.
author Bram Moolenaar <Bram@vim.org>
date Sat, 08 Feb 2020 14:30:09 +0100
parents c221e35656dc
children 11bb83791081
files src/term.c src/version.c
diffstat 2 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/term.c
+++ b/src/term.c
@@ -909,8 +909,8 @@ static struct builtin_term builtin_termc
     {(int)KS_KE,	IF_EB("\033[?1l\033>", ESC_STR "[?1l" ESC_STR_nc ">")},
 #  ifdef FEAT_XTERM_SAVE
     {(int)KS_TI,	IF_EB("\0337\033[?47h", ESC_STR "7" ESC_STR_nc "[?47h")},
-    {(int)KS_TE,	IF_EB("\033[2J\033[?47l\0338",
-				  ESC_STR "[2J" ESC_STR_nc "[?47l" ESC_STR_nc "8")},
+    {(int)KS_TE,	IF_EB("\033[?47l\0338",
+					   ESC_STR_nc "[?47l" ESC_STR_nc "8")},
 #  endif
     {(int)KS_CTI,	IF_EB("\033[>4;2m", ESC_STR_nc "[>4;2m")},
     {(int)KS_CTE,	IF_EB("\033[>4;m", ESC_STR_nc "[>4;m")},
--- a/src/version.c
+++ b/src/version.c
@@ -743,6 +743,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    231,
+/**/
     230,
 /**/
     229,