diff src/terminal.c @ 16656:e8c081146788 v8.1.1330

patch 8.1.1330: using bold attribute in terminal changes the color commit https://github.com/vim/vim/commit/9e58787de737479fb210a3bfef7458d667406d17 Author: Bram Moolenaar <Bram@vim.org> Date: Mon May 13 20:27:23 2019 +0200 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.
author Bram Moolenaar <Bram@vim.org>
date Mon, 13 May 2019 20:30:06 +0200
parents a1ba0bd74e7d
children 695d9ef00b03
line wrap: on
line diff
--- a/src/terminal.c
+++ b/src/terminal.c
@@ -3976,7 +3976,9 @@ create_vterm(term_T *term, int rows, int
 	    &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. */