aboutsummaryrefslogtreecommitdiff
path: root/src
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-12 09:47:40 -0300
commit0887c5446ee8ec6ea53ef69e5d02bd319e1bca1c (patch)
treeef433062bb9ff33b50c41f9e3964496f53fc884c /src
parent0219c87534ff0770b95925529f8e89a2b6c34b14 (diff)
downloadrneovim-0887c5446ee8ec6ea53ef69e5d02bd319e1bca1c.tar.gz
rneovim-0887c5446ee8ec6ea53ef69e5d02bd319e1bca1c.tar.bz2
rneovim-0887c5446ee8ec6ea53ef69e5d02bd319e1bca1c.zip
ui: Merge standout and reverse into one attribute
Diffstat (limited to 'src')
-rw-r--r--src/nvim/msgpack_rpc/remote_ui.c4
-rw-r--r--src/nvim/ui.c5
-rw-r--r--src/nvim/ui.h2
3 files changed, 3 insertions, 8 deletions
diff --git a/src/nvim/msgpack_rpc/remote_ui.c b/src/nvim/msgpack_rpc/remote_ui.c
index a0bc573698..e1cb474530 100644
--- a/src/nvim/msgpack_rpc/remote_ui.c
+++ b/src/nvim/msgpack_rpc/remote_ui.c
@@ -249,10 +249,6 @@ static void remote_ui_highlight_set(UI *ui, HlAttrs attrs)
PUT(hl, "bold", BOOLEAN_OBJ(true));
}
- if (attrs.standout) {
- PUT(hl, "standout", BOOLEAN_OBJ(true));
- }
-
if (attrs.underline) {
PUT(hl, "underline", BOOLEAN_OBJ(true));
}
diff --git a/src/nvim/ui.c b/src/nvim/ui.c
index de92079ada..b95fdd1104 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;
@@ -338,11 +338,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;
}
diff --git a/src/nvim/ui.h b/src/nvim/ui.h
index 7c4a233d79..0fcd686e7b 100644
--- a/src/nvim/ui.h
+++ b/src/nvim/ui.h
@@ -6,7 +6,7 @@
#include <stdint.h>
typedef struct {
- bool bold, standout, underline, undercurl, italic, reverse;
+ bool bold, underline, undercurl, italic, reverse;
int foreground, background;
} HlAttrs;