On 6/28/17 1:09 AM, Bram Moolenaar wrote:
Patch 8.0.0683
Problem: When using a visual bell there is no delay, causing the flash to
be very short, possibly unnoticeable. Also, the flash and the
beep can lockup the UI when repeated often.
Solution: Do the delay in Vim or flush the output before the delay. Limit the
bell to once per half a second. (Ozaki Kiichi, closes #1789)
Files: src/misc1.c, src/proto/term.pro, src/term.c
After this patch, mingw (7.1.0 x64) gives this warning:
gcc -c -Iproto -DWIN32 -DWINVER=0x0502 -D_WIN32_WINNT=0x0502 -DHAVE_PATHDEF
-DFEAT_NORMAL -DHAVE_STDINT_H -DFEAT_GUI_W32 -DFEAT_CLIPBOARD -DFEAT_MBYTE
-pipe -march=native -Wall -O3 -fomit-frame-pointer -freg-struct-return -s
term.c -o gobjnative/term.o
term.c: In function 'out_str_cf':
term.c:2527:10: warning: unused variable 'p' [-Wunused-variable]
char_u *p;
^
Please check the attached patch, which makes the warning go away.
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].
For more options, visit https://groups.google.com/d/optout.
--- term.c.orig 2017-06-28 05:16:48.193137600 +1000
+++ term.c 2017-06-30 05:43:21.749339400 +1000
@@ -2524,7 +2524,9 @@
{
if (s != NULL && *s)
{
+#ifdef HAVE_TGETENT
char_u *p;
+#endif
#ifdef FEAT_GUI
/* Don't use tputs() when GUI is used, ncurses crashes. */