aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/syntax.c
diff options
context:
space:
mode:
authorThiago de Arruda <tpadilha84@gmail.com>2014-12-13 12:58:06 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2015-01-13 11:54:28 -0300
commit926503c84e694146f536b691f39e32857e57ac94 (patch)
tree1a7d24fc55079c3bcaf5efeba5bd0a4b64f613f2 /src/nvim/syntax.c
parent8c12292a6129381dada53009ff90e4e22545f60b (diff)
downloadrneovim-926503c84e694146f536b691f39e32857e57ac94.tar.gz
rneovim-926503c84e694146f536b691f39e32857e57ac94.tar.bz2
rneovim-926503c84e694146f536b691f39e32857e57ac94.zip
ui: Fix ui resizing and change some method names
Diffstat (limited to 'src/nvim/syntax.c')
-rw-r--r--src/nvim/syntax.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/nvim/syntax.c b/src/nvim/syntax.c
index c03edc2cca..68eedecd50 100644
--- a/src/nvim/syntax.c
+++ b/src/nvim/syntax.c
@@ -6519,7 +6519,6 @@ do_highlight (
if (is_normal_group) {
normal_fg = HL_TABLE()[idx].sg_rgb_fg;
- ui_fg_updated();
}
} else if (STRCMP(key, "GUIBG") == 0) {
if (!init || !(HL_TABLE()[idx].sg_set & SG_GUI)) {
@@ -6538,7 +6537,6 @@ do_highlight (
if (is_normal_group) {
normal_bg = HL_TABLE()[idx].sg_rgb_bg;
- ui_bg_updated();
}
} else if (STRCMP(key, "GUISP") == 0) {
// Ignored
@@ -6635,6 +6633,10 @@ do_highlight (
if (is_normal_group) {
HL_TABLE()[idx].sg_term_attr = 0;
HL_TABLE()[idx].sg_cterm_attr = 0;
+ if (abstract_ui) {
+ // If the normal group has changed, it is simpler to refresh every UI
+ ui_refresh();
+ }
} else
set_hl_attr(idx);
HL_TABLE()[idx].sg_scriptID = current_SID;