0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.2.0891: clang warns for invalid conversion

Problem:    Clang warns for invalid conversion.
Solution:   Use zero instead of INVALCOLOR.
This commit is contained in:
Bram Moolenaar
2020-06-03 10:04:49 +02:00
parent 1e5f8f6d65
commit cc836556d9
2 changed files with 3 additions and 1 deletions

View File

@@ -2235,7 +2235,7 @@ get_cterm_attr_idx(int attr, int fg, int bg)
at_en.ae_attr = attr; at_en.ae_attr = attr;
at_en.ae_u.cterm.fg_color = fg; at_en.ae_u.cterm.fg_color = fg;
at_en.ae_u.cterm.bg_color = bg; at_en.ae_u.cterm.bg_color = bg;
at_en.ae_u.cterm.ul_color = INVALCOLOR; at_en.ae_u.cterm.ul_color = 0;
return get_attr_entry(&cterm_attr_table, &at_en); return get_attr_entry(&cterm_attr_table, &at_en);
} }
#endif #endif

View File

@@ -746,6 +746,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
891,
/**/ /**/
890, 890,
/**/ /**/