summaryrefslogtreecommitdiffstats
path: root/src/highlight.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-06-02 23:18:24 +0200
committerBram Moolenaar <Bram@vim.org>2020-06-02 23:18:24 +0200
commit1e5f8f6d65b2ecff3d93d9fdbdd17c7a2ab9cc3d (patch)
tree92fb28f2b5d9263e7af4eb9b38aab892bde96135 /src/highlight.c
parent791fb1bcda7cd1a388ad948cdef469a2744d6dff (diff)
patch 8.2.0890: no color in terminal window when 'termguicolor' is setv8.2.0890
Problem: No color in terminal window when 'termguicolor' is set. Solution: Clear the underline color. (closes #6186)
Diffstat (limited to 'src/highlight.c')
-rw-r--r--src/highlight.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/highlight.c b/src/highlight.c
index e446966752..852fffba9b 100644
--- a/src/highlight.c
+++ b/src/highlight.c
@@ -2230,10 +2230,12 @@ get_cterm_attr_idx(int attr, int fg, int bg)
#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, guicolor_T bg)
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