diff options
author | Thiago de Arruda <tpadilha84@gmail.com> | 2015-01-02 21:03:25 -0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2015-01-13 11:54:52 -0300 |
commit | 631099d02abf2c5ceee88267622570df576b464c (patch) | |
tree | 5b0c9d81b52cc1a9e63da3d14487d11a47671a9f /src/nvim/syntax.c | |
parent | 46b4764f7a484f7b0e032878389b8a7d92197129 (diff) | |
download | rneovim-631099d02abf2c5ceee88267622570df576b464c.tar.gz rneovim-631099d02abf2c5ceee88267622570df576b464c.tar.bz2 rneovim-631099d02abf2c5ceee88267622570df576b464c.zip |
syntax: Take rgb fg/bg when allocating cterm attr number
Diffstat (limited to 'src/nvim/syntax.c')
-rw-r--r-- | src/nvim/syntax.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nvim/syntax.c b/src/nvim/syntax.c index 68eedecd50..c83968b7cc 100644 --- a/src/nvim/syntax.c +++ b/src/nvim/syntax.c @@ -7199,9 +7199,10 @@ set_hl_attr ( * For the color term mode: If there are other than "normal" * highlighting attributes, need to allocate an attr number. */ - if (sgp->sg_cterm_fg == 0 && sgp->sg_cterm_bg == 0) + if (sgp->sg_cterm_fg == 0 && sgp->sg_cterm_bg == 0 + && sgp->sg_rgb_fg == -1 && sgp->sg_rgb_bg == -1) { sgp->sg_cterm_attr = sgp->sg_cterm; - else { + } else { at_en.ae_attr = abstract_ui ? sgp->sg_gui : sgp->sg_cterm; at_en.ae_u.cterm.fg_color = sgp->sg_cterm_fg; at_en.ae_u.cterm.bg_color = sgp->sg_cterm_bg; |