summaryrefslogtreecommitdiff
path: root/src/optionstr.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-05-03 20:40:38 +0200
committerBram Moolenaar <Bram@vim.org>2021-05-03 20:40:38 +0200
commitad431995721b2a886f789e2ea7db4c84b732eb18 (patch)
treecf5e87b996a15e384095f2163f1d32ce04bc682b /src/optionstr.c
parentdf36514a6455342e178af693553ef9df9fcf8c83 (diff)
downloadvim-git-ad431995721b2a886f789e2ea7db4c84b732eb18.tar.gz
patch 8.2.2830: terminal colors are not updated when 'background' is setv8.2.2830
Problem: Terminal colors are not updated when 'background' is set. Solution: Call term_update_colors() for all terminals. (Marcin Szamotulski, closes #8171, closes #8150)
Diffstat (limited to 'src/optionstr.c')
-rw-r--r--src/optionstr.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/optionstr.c b/src/optionstr.c
index 91d0a69d1..1ec8d05d6 100644
--- a/src/optionstr.c
+++ b/src/optionstr.c
@@ -908,6 +908,9 @@ ambw_end:
init_highlight(FALSE, FALSE);
}
#endif
+#ifdef FEAT_TERMINAL
+ term_update_colors_all();
+#endif
}
else
errmsg = e_invarg;
@@ -2176,7 +2179,7 @@ ambw_end:
else if (varp == &curwin->w_p_wcr)
{
if (curwin->w_buffer->b_term != NULL)
- term_update_colors();
+ term_update_colors(curwin->w_buffer->b_term);
}
# if defined(MSWIN)
// 'termwintype'