aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ui.c
diff options
context:
space:
mode:
authorThiago de Arruda <tpadilha84@gmail.com>2014-12-30 08:24:22 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2015-01-13 11:54:52 -0300
commit46b4764f7a484f7b0e032878389b8a7d92197129 (patch)
treeba51e84bf79c27d0621c5a1b42837b9161b19840 /src/nvim/ui.c
parent3e83e44792021fb9d18acbb664172ce9a06dc9be (diff)
downloadrneovim-46b4764f7a484f7b0e032878389b8a7d92197129.tar.gz
rneovim-46b4764f7a484f7b0e032878389b8a7d92197129.tar.bz2
rneovim-46b4764f7a484f7b0e032878389b8a7d92197129.zip
ui: Merge standout and reverse into one attribute
Diffstat (limited to 'src/nvim/ui.c')
-rw-r--r--src/nvim/ui.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/nvim/ui.c b/src/nvim/ui.c
index 042ca944a0..424197ed77 100644
--- a/src/nvim/ui.c
+++ b/src/nvim/ui.c
@@ -61,7 +61,7 @@ static struct {
} sr;
static int current_highlight_mask = 0;
static HlAttrs current_attrs = {
- false, false, false, false, false, false, -1, -1
+ false, false, false, false, false, -1, -1
};
static bool cursor_enabled = true;
static int height, width;
@@ -342,11 +342,10 @@ static void set_highlight_args(int mask, HlAttrs *attrs)
}
attrs->bold = mask & HL_BOLD;
- attrs->standout = mask & HL_STANDOUT;
attrs->underline = mask & HL_UNDERLINE;
attrs->undercurl = mask & HL_UNDERCURL;
attrs->italic = mask & HL_ITALIC;
- attrs->reverse = mask & HL_INVERSE;
+ attrs->reverse = mask & (HL_INVERSE | HL_STANDOUT);
attrs->foreground = aep && aep->fg_color >= 0 ? aep->fg_color : normal_fg;
attrs->background = aep && aep->bg_color >= 0 ? aep->bg_color : normal_bg;
}