From: Bram Moolenaar Date: Sat, 8 Feb 2020 13:22:53 +0000 (+0100) Subject: patch 8.2.0231: silent system command may clear the screen X-Git-Tag: v8.2.0231 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d02e508a18346ca1acb8c0c94c38e62a6ddeefe2;p=vim 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. --- diff --git a/src/term.c b/src/term.c index 139928683..b942b0f4b 100644 --- a/src/term.c +++ b/src/term.c @@ -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")}, diff --git a/src/version.c b/src/version.c index 8bd7d10bf..db1f9f77b 100644 --- a/src/version.c +++ b/src/version.c @@ -742,6 +742,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 231, /**/ 230, /**/