0
0
mirror of https://github.com/vim/vim.git synced 2025-09-29 04:34:16 -04:00

patch 8.2.2830: terminal colors are not updated when 'background' is set

Problem:    Terminal colors are not updated when 'background' is set.
Solution:   Call term_update_colors() for all terminals. (Marcin Szamotulski,
            closes #8171, closes #8150)
This commit is contained in:
Bram Moolenaar
2021-05-03 20:40:38 +02:00
parent df36514a64
commit ad43199572
4 changed files with 27 additions and 7 deletions

View File

@@ -907,6 +907,9 @@ ambw_end:
check_string_option(&p_bg);
init_highlight(FALSE, FALSE);
}
#endif
#ifdef FEAT_TERMINAL
term_update_colors_all();
#endif
}
else
@@ -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'