diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-11-20 13:47:45 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-11-20 13:47:45 +0000 |
commit | 87fd0924e2d85213cc111ee7a5122f92216a37c7 (patch) | |
tree | f2338c0fc69e65e11e66590514a2b6eb40e2e26d /src/highlight.c | |
parent | cdf5fdb2948ecdd24c6a1e27ed33dfa847c2b3e4 (diff) |
patch 8.2.3628: looking terminal colors is a bit slowv8.2.3628
Problem: Looking terminal colors is a bit slow.
Solution: Cache the terminal colors. (closes #9130, closes #9058)
Diffstat (limited to 'src/highlight.c')
-rw-r--r-- | src/highlight.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/highlight.c b/src/highlight.c index 7a32b22481..77ad0bc78c 100644 --- a/src/highlight.c +++ b/src/highlight.c @@ -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; |