summaryrefslogtreecommitdiff
path: root/src/terminal.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-05-13 20:27:23 +0200
committerBram Moolenaar <Bram@vim.org>2019-05-13 20:27:23 +0200
commit9e58787de737479fb210a3bfef7458d667406d17 (patch)
treea3bd7471d22f87f27aa7a000538d631cb8e8afc7 /src/terminal.c
parent957f85d54ebd5a3bd0d930de9603190f0876f977 (diff)
downloadvim-git-9e58787de737479fb210a3bfef7458d667406d17.tar.gz
patch 8.1.1330: using bold attribute in terminal changes the colorv8.1.1330
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.
Diffstat (limited to 'src/terminal.c')
-rw-r--r--src/terminal.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/terminal.c b/src/terminal.c
index bc57d641f..caa4c8573 100644
--- a/src/terminal.c
+++ b/src/terminal.c
@@ -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. */