summaryrefslogtreecommitdiffstats
path: root/src/option.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-11-20 13:47:45 +0000
committerBram Moolenaar <Bram@vim.org>2021-11-20 13:47:45 +0000
commit87fd0924e2d85213cc111ee7a5122f92216a37c7 (patch)
treef2338c0fc69e65e11e66590514a2b6eb40e2e26d /src/option.c
parentcdf5fdb2948ecdd24c6a1e27ed33dfa847c2b3e4 (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/option.c')
-rw-r--r--src/option.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/option.c b/src/option.c
index 4f080a3739..b807b9b6c0 100644
--- a/src/option.c
+++ b/src/option.c
@@ -3259,6 +3259,10 @@ set_bool_option(
init_highlight(TRUE, FALSE);
}
# endif
+# ifdef FEAT_TERMINAL
+ term_update_colors_all();
+ term_update_wincolor_all();
+# endif
}
#endif