]> granicus.if.org Git - vim/commitdiff
patch 8.2.0231: silent system command may clear the screen v8.2.0231
authorBram Moolenaar <Bram@vim.org>
Sat, 8 Feb 2020 13:22:53 +0000 (14:22 +0100)
committerBram Moolenaar <Bram@vim.org>
Sat, 8 Feb 2020 13:22:53 +0000 (14:22 +0100)
Problem:    Silent system command may clear the screen.
Solution:   Do not clear the screen in t_te.

src/term.c
src/version.c

index 139928683cb0feccaaf339257dbbe307eea185e9..b942b0f4b92342010bc48b3eb71886bda00792b3 100644 (file)
@@ -909,8 +909,8 @@ static struct builtin_term builtin_termcaps[] =
     {(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")},
index 8bd7d10bfbb50761fde0cd5c7d48a4207e98b9df..db1f9f77b7b9358ad93431134837aa15184b1a07 100644 (file)
@@ -742,6 +742,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    231,
 /**/
     230,
 /**/