# HG changeset patch # User Christian Brabandt # Date 1699699503 -3600 # Node ID 89569bd907fc9812f94ebd5f5b68882906d2a8af # Parent 7544cdfdbf6a15a8d6b9e4a56af5158a5a06203a patch 9.0.2099: win32: terminal codes clear the terminal Commit: https://github.com/vim/vim/commit/6cd2d1df92718853a83d811cc2d29108e8c13139 Author: Nir Lichtman Date: Sat Nov 11 11:27:41 2023 +0100 patch 9.0.2099: win32: terminal codes clear the terminal Problem: Terminal control codes? are sent even when silent mode is on, causing the terminal to clear up Solution: Block any terminal codes when silent mode is on ?https://learn.microsoft.com/en-us/windows/console/console-virtual-terminal-sequences fixes: #12822 closes: #13521 Signed-off-by: Nir Lichtman Signed-off-by: Christian Brabandt diff --git a/src/os_win32.c b/src/os_win32.c --- a/src/os_win32.c +++ b/src/os_win32.c @@ -8578,6 +8578,9 @@ vtp_printf( DWORD result; int len; + if (silent_mode) + return 0; + va_start(list, format); len = vim_vsnprintf((char *)buf, 100, (char *)format, list); va_end(list); diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -705,6 +705,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 2099, +/**/ 2098, /**/ 2097,