aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThiago de Arruda <tpadilha84@gmail.com>2015-01-02 21:03:25 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2015-01-12 09:47:40 -0300
commitc1252a5615d9e69cac50570e8de70e5036a67908 (patch)
treeee5955d2b720052316bcf8f9c8155f1cd5f0c813 /src
parent0887c5446ee8ec6ea53ef69e5d02bd319e1bca1c (diff)
downloadrneovim-c1252a5615d9e69cac50570e8de70e5036a67908.tar.gz
rneovim-c1252a5615d9e69cac50570e8de70e5036a67908.tar.bz2
rneovim-c1252a5615d9e69cac50570e8de70e5036a67908.zip
syntax: Take rgb fg/bg when allocating cterm attr number
Diffstat (limited to 'src')
-rw-r--r--src/nvim/syntax.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nvim/syntax.c b/src/nvim/syntax.c
index c2fb34cde0..884a563fea 100644
--- a/src/nvim/syntax.c
+++ b/src/nvim/syntax.c
@@ -7209,9 +7209,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;