changeset 20673:0ebd431a2256 v8.2.0890

patch 8.2.0890: no color in terminal window when 'termguicolor' is set Commit: https://github.com/vim/vim/commit/1e5f8f6d65b2ecff3d93d9fdbdd17c7a2ab9cc3d Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jun 2 23:18:24 2020 +0200 patch 8.2.0890: no color in terminal window when 'termguicolor' is set Problem: No color in terminal window when 'termguicolor' is set. Solution: Clear the underline color. (closes https://github.com/vim/vim/issues/6186)
author Bram Moolenaar <Bram@vim.org>
date Tue, 02 Jun 2020 23:30:04 +0200
parents 1be675379730
children 7d47585c9c06
files src/highlight.c src/version.c
diffstat 2 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/highlight.c
+++ b/src/highlight.c
@@ -2230,10 +2230,12 @@ get_cterm_attr_idx(int attr, int fg, int
 #ifdef FEAT_TERMGUICOLORS
     at_en.ae_u.cterm.fg_rgb = INVALCOLOR;
     at_en.ae_u.cterm.bg_rgb = INVALCOLOR;
+    at_en.ae_u.cterm.ul_rgb = INVALCOLOR;
 #endif
     at_en.ae_attr = attr;
     at_en.ae_u.cterm.fg_color = fg;
     at_en.ae_u.cterm.bg_color = bg;
+    at_en.ae_u.cterm.ul_color = INVALCOLOR;
     return get_attr_entry(&cterm_attr_table, &at_en);
 }
 #endif
@@ -2262,6 +2264,7 @@ get_tgc_attr_idx(int attr, guicolor_T fg
 	at_en.ae_u.cterm.fg_rgb = fg;
 	at_en.ae_u.cterm.bg_rgb = bg;
     }
+    at_en.ae_u.cterm.ul_rgb = INVALCOLOR;
     return get_attr_entry(&cterm_attr_table, &at_en);
 }
 #endif
--- a/src/version.c
+++ b/src/version.c
@@ -747,6 +747,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    890,
+/**/
     889,
 /**/
     888,