comparison src/optionstr.c @ 24582:1a658c5eb326 v8.2.2830

patch 8.2.2830: terminal colors are not updated when 'background' is set Commit: https://github.com/vim/vim/commit/ad431995721b2a886f789e2ea7db4c84b732eb18 Author: Bram Moolenaar <Bram@vim.org> Date: Mon May 3 20:40:38 2021 +0200 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)
author Bram Moolenaar <Bram@vim.org>
date Mon, 03 May 2021 20:45:04 +0200
parents a56f9c2ba51c
children 4cf4d7a71fac
comparison
equal deleted inserted replaced
24581:4cb7be47fa3d 24582:1a658c5eb326
906 p_bg = vim_strsave((char_u *)(dark ? "dark" : "light")); 906 p_bg = vim_strsave((char_u *)(dark ? "dark" : "light"));
907 check_string_option(&p_bg); 907 check_string_option(&p_bg);
908 init_highlight(FALSE, FALSE); 908 init_highlight(FALSE, FALSE);
909 } 909 }
910 #endif 910 #endif
911 #ifdef FEAT_TERMINAL
912 term_update_colors_all();
913 #endif
911 } 914 }
912 else 915 else
913 errmsg = e_invarg; 916 errmsg = e_invarg;
914 } 917 }
915 918
2174 } 2177 }
2175 // 'wincolor' 2178 // 'wincolor'
2176 else if (varp == &curwin->w_p_wcr) 2179 else if (varp == &curwin->w_p_wcr)
2177 { 2180 {
2178 if (curwin->w_buffer->b_term != NULL) 2181 if (curwin->w_buffer->b_term != NULL)
2179 term_update_colors(); 2182 term_update_colors(curwin->w_buffer->b_term);
2180 } 2183 }
2181 # if defined(MSWIN) 2184 # if defined(MSWIN)
2182 // 'termwintype' 2185 // 'termwintype'
2183 else if (varp == &p_twt) 2186 else if (varp == &p_twt)
2184 { 2187 {