1
0
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:
Bram Moolenaar
2021-11-20 13:47:45 +00:00
parent cdf5fdb294
commit 87fd0924e2
43 changed files with 1056 additions and 212 deletions

View File

@@ -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;