comparison 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
comparison
equal deleted inserted replaced
16655:5986152269cf 16656:e8c081146788
3974 vterm_state_set_default_colors( 3974 vterm_state_set_default_colors(
3975 state, 3975 state,
3976 &term->tl_default_color.fg, 3976 &term->tl_default_color.fg,
3977 &term->tl_default_color.bg); 3977 &term->tl_default_color.bg);
3978 3978
3979 if (t_colors >= 16) 3979 if (t_colors < 16)
3980 // Less than 16 colors: assume that bold means using a bright color for
3981 // the foreground color.
3980 vterm_state_set_bold_highbright(vterm_obtain_state(vterm), 1); 3982 vterm_state_set_bold_highbright(vterm_obtain_state(vterm), 1);
3981 3983
3982 /* Required to initialize most things. */ 3984 /* Required to initialize most things. */
3983 vterm_screen_reset(screen, 1 /* hard */); 3985 vterm_screen_reset(screen, 1 /* hard */);
3984 3986