On 23-Dec-2022 00:44, Bram Moolenaar wrote:
Patch 9.0.1086
Problem: Display wrong in Windows terminal after exiting Vim.
Solution: Apply screen restore fix for Windows 11 also to Windows 10 builds.
(Christopher Plewright, closes #11713, closes #11706)
Files: src/os_win32.c
After this patch msys2 (clang 15.0.5 x64) gives this warning:
<snip>
clang -c -I. -Iproto -DWIN32 -DWINVER=0x0603 -D_WIN32_WINNT=0x0603
-DHAVE_PATHDEF -DFEAT_NORMAL -DHAVE_STDINT_H -D__USE_MINGW_ANSI_STDIO
-pipe -Wall -O3 -fomit-frame-pointer -fpie -fPIE -DFEAT_GUI_MSWIN
-DFEAT_CLIPBOARD os_win32.c -o gobjx86-64/os_win32.o
os_win32.c:260:13: warning: unused variable
'use_alternate_screen_buffer' [-Wunused-variable]
static BOOL use_alternate_screen_buffer = FALSE;
^
1 warning generated.
</snip>
The attached patch tries to fix it.
Cheers
John
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/e43a469c-b6f3-e00b-c708-8bf0613ec18b%40internode.on.net.
--- os_win32.c.orig 2022-12-23 05:25:08.900346500 +1100
+++ os_win32.c 2022-12-23 05:33:23.155461500 +1100
@@ -257,7 +257,9 @@
static BOOL win8_or_later = FALSE;
static BOOL win10_22H2_or_later = FALSE;
+#if !defined(FEAT_GUI_MSWIN) || defined(VIMDLL)
static BOOL use_alternate_screen_buffer = FALSE;
+#endif
/*
* Get version number including build number