aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/syntax.c
diff options
context:
space:
mode:
authorThiago de Arruda <tpadilha84@gmail.com>2014-12-12 16:25:11 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2015-01-13 11:53:27 -0300
commitfc8f7686905bf0441f4a2f35a65dad85fe813df3 (patch)
tree7e3ae9b093fe399752da9f4ddfa04059c9348b3f /src/nvim/syntax.c
parent1ccbd94beec5c1f5d91b0b084062afa7908dd69e (diff)
downloadrneovim-fc8f7686905bf0441f4a2f35a65dad85fe813df3.tar.gz
rneovim-fc8f7686905bf0441f4a2f35a65dad85fe813df3.tar.bz2
rneovim-fc8f7686905bf0441f4a2f35a65dad85fe813df3.zip
ui: Add update_fg/update_bg methods
It is necessary to notify the UI when the default background/foreground colors change in order to render correctly.
Diffstat (limited to 'src/nvim/syntax.c')
-rw-r--r--src/nvim/syntax.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nvim/syntax.c b/src/nvim/syntax.c
index e9a814bc97..c03edc2cca 100644
--- a/src/nvim/syntax.c
+++ b/src/nvim/syntax.c
@@ -45,6 +45,7 @@
#include "nvim/strings.h"
#include "nvim/syntax_defs.h"
#include "nvim/term.h"
+#include "nvim/ui.h"
#include "nvim/os/os.h"
#include "nvim/os/time.h"
@@ -6518,6 +6519,7 @@ 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)) {
@@ -6536,6 +6538,7 @@ do_highlight (
if (is_normal_group) {
normal_bg = HL_TABLE()[idx].sg_rgb_bg;
+ ui_bg_updated();
}
} else if (STRCMP(key, "GUISP") == 0) {
// Ignored