diff options
author | Thiago de Arruda <tpadilha84@gmail.com> | 2014-12-13 12:58:06 -0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2015-01-12 09:47:34 -0300 |
commit | 213c3c3e53459a77c77166cda85ba619e7eb2eb1 (patch) | |
tree | 517bff1698d6a71b622ed4213a72b67570fcb032 /src/nvim/syntax.c | |
parent | 9b30abcecbc2492910f0281f596679714d95a88c (diff) | |
download | rneovim-213c3c3e53459a77c77166cda85ba619e7eb2eb1.tar.gz rneovim-213c3c3e53459a77c77166cda85ba619e7eb2eb1.tar.bz2 rneovim-213c3c3e53459a77c77166cda85ba619e7eb2eb1.zip |
ui: Fix ui resizing and change some method names
Diffstat (limited to 'src/nvim/syntax.c')
-rw-r--r-- | src/nvim/syntax.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/nvim/syntax.c b/src/nvim/syntax.c index 68589522c4..c2fb34cde0 100644 --- a/src/nvim/syntax.c +++ b/src/nvim/syntax.c @@ -6529,7 +6529,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)) { @@ -6548,7 +6547,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 @@ -6645,6 +6643,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; |