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/popupwin.c | |
parent | cdf5fdb2948ecdd24c6a1e27ed33dfa847c2b3e4 (diff) | |
download | vim-git-87fd0924e2d85213cc111ee7a5122f92216a37c7.tar.gz |
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/popupwin.c')
-rw-r--r-- | src/popupwin.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/popupwin.c b/src/popupwin.c index 2c903bcc4..d5f8d26ee 100644 --- a/src/popupwin.c +++ b/src/popupwin.c @@ -732,8 +732,13 @@ apply_general_options(win_T *wp, dict_T *dict) str = dict_get_string(dict, (char_u *)"highlight", FALSE); if (str != NULL) + { set_string_option_direct_in_win(wp, (char_u *)"wincolor", -1, str, OPT_FREE|OPT_LOCAL, 0); +#ifdef FEAT_TERMINAL + term_update_wincolor(wp); +#endif + } set_padding_border(dict, wp->w_popup_padding, "padding", 999); set_padding_border(dict, wp->w_popup_border, "border", 1); |