Dominique wrote:

> Bram Moolenaar wrote:
> 
> > Patch 8.2.0890
> > Problem:    No color in terminal window when 'termguicolor' is set.
> > Solution:   Clear the underline color. (closes #6186)
> > Files:      src/highlight.c
> 
> Patch 8.2.0890 introduces a compilation warning:
> 
> gcc -c -I. -Iproto -DHAVE_CONFIG_H     -g -O2 -D_REENTRANT
> -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1   -DEXITFREE     -o
> objects/highlight.o highlight.c
> In file included from vim.h:1812:0,
>                  from highlight.c:15:
> highlight.c: In function ‘get_cterm_attr_idx’:
> structs.h:116:21: warning: large integer implicitly truncated to
> unsigned type [-Woverflow]
>  # define INVALCOLOR ((guicolor_T)0x1ffffff)
>                      ^
> highlight.c:2238:33: note: in expansion of macro ‘INVALCOLOR’
>      at_en.ae_u.cterm.ul_color = INVALCOLOR;
>                                  ^~~~~~~~~~
> 
> at_en.ae_u.ul_color is a 'short_u' type.

Yeah, INVALCOLOR is for the RGB color, here it should be zero.

Libvterm doesn't support the underline color.  Should not be too
difficult to add.

-- 
hundred-and-one symptoms of being an internet addict:
264. You turn to the teletext page "surfing report" and are surprised that it
     is about sizes of waves and a weather forecast for seaside resorts.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
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/202006030813.0538DrN0429164%40masaka.moolenaar.net.

Raspunde prin e-mail lui