diff options
author | Thiago de Arruda <tpadilha84@gmail.com> | 2014-12-12 16:25:11 -0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2015-01-10 21:41:31 -0300 |
commit | 4f5f246a958e66e04a5d62b3bf0d8986afb51c09 (patch) | |
tree | 7bafd201edc44c22a39003a43a51ced1983917c2 /src/nvim/syntax.c | |
parent | 209b5ed6ba76fe28c5ec7e1c7b38f77c1fa53250 (diff) | |
download | rneovim-4f5f246a958e66e04a5d62b3bf0d8986afb51c09.tar.gz rneovim-4f5f246a958e66e04a5d62b3bf0d8986afb51c09.tar.bz2 rneovim-4f5f246a958e66e04a5d62b3bf0d8986afb51c09.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.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nvim/syntax.c b/src/nvim/syntax.c index f35da39bb3..8f686ca59f 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" @@ -6528,6 +6529,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)) { @@ -6546,6 +6548,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 |