summaryrefslogtreecommitdiffstats
path: root/src/os_win32.c
diff options
context:
space:
mode:
authorNir Lichtman <nir@lichtman.org>2023-11-11 11:27:41 +0100
committerChristian Brabandt <cb@256bit.org>2023-11-11 11:33:43 +0100
commit6cd2d1df92718853a83d811cc2d29108e8c13139 (patch)
treec1d562b14832fbfcb6dfeb0ff0d87a20acca3a40 /src/os_win32.c
parent2c5240ec8b7d7b261ce794a74602c407ad5e6620 (diff)
patch 9.0.2099: win32: terminal codes clear the terminalv9.0.2099
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 <nir@lichtman.org> Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'src/os_win32.c')
-rw-r--r--src/os_win32.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/os_win32.c b/src/os_win32.c
index 92bc8c157f..2bf0fe7122 100644
--- 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);