mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
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:
@@ -1422,6 +1422,9 @@ win_init(win_T *newp, win_T *oldp, int flags UNUSED)
|
||||
#ifdef FEAT_SYN_HL
|
||||
check_colorcolumn(newp);
|
||||
#endif
|
||||
#ifdef FEAT_TERMINAL
|
||||
term_update_wincolor(newp);
|
||||
#endif
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -3684,6 +3687,9 @@ win_init_empty(win_T *wp)
|
||||
#if defined(FEAT_SYN_HL) || defined(FEAT_SPELL)
|
||||
wp->w_s = &wp->w_buffer->b_s;
|
||||
#endif
|
||||
#ifdef FEAT_TERMINAL
|
||||
term_reset_wincolor(wp);
|
||||
#endif
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user