forked from aniani/vim
patch 8.2.3628: looking terminal colors is a bit slow
Problem: Looking terminal colors is a bit slow. Solution: Cache the terminal colors. (closes #9130, closes #9058)
This commit is contained in:
@@ -3753,6 +3753,11 @@ highlight_changed(void)
|
||||
|
||||
need_highlight_changed = FALSE;
|
||||
|
||||
#ifdef FEAT_TERMINAL
|
||||
term_update_colors_all();
|
||||
term_update_wincolor_all();
|
||||
#endif
|
||||
|
||||
// Clear all attributes.
|
||||
for (hlf = 0; hlf < (int)HLF_COUNT; ++hlf)
|
||||
highlight_attr[hlf] = 0;
|
||||
|
Reference in New Issue
Block a user