mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 8.1.1330: using bold attribute in terminal changes the color
Problem: Using bold attribute in terminal changes the color. (Jason Franklin) Solution: Don't set the "bold-highbright" flag in vterm unless the terminal supports less than 16 colors.
This commit is contained in:
@@ -3976,7 +3976,9 @@ create_vterm(term_T *term, int rows, int cols)
|
||||
&term->tl_default_color.fg,
|
||||
&term->tl_default_color.bg);
|
||||
|
||||
if (t_colors >= 16)
|
||||
if (t_colors < 16)
|
||||
// Less than 16 colors: assume that bold means using a bright color for
|
||||
// the foreground color.
|
||||
vterm_state_set_bold_highbright(vterm_obtain_state(vterm), 1);
|
||||
|
||||
/* Required to initialize most things. */
|
||||
|
Reference in New Issue
Block a user