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:
@@ -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'
|
||||
|
Reference in New Issue
Block a user