Skip to content

Commit

Permalink
patch 8.2.4355: unnecessary call to check_colorcolumn()
Browse files Browse the repository at this point in the history
Problem:    Unnecessary call to check_colorcolumn().
Solution:   Remove the call. (Sean Dewar, closes #9748)
  • Loading branch information
seandewar authored and brammool committed Feb 12, 2022
1 parent d68b2fc commit 0f7ff85
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/option.c
Expand Up @@ -5604,7 +5604,7 @@ win_copy_options(win_T *wp_from, win_T *wp_to)
* After copying window options: update variables depending on options.
*/
void
after_copy_winopt(win_T *wp UNUSED)
after_copy_winopt(win_T *wp)
{
#ifdef FEAT_LINEBREAK
briopt_check(wp);
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Expand Up @@ -750,6 +750,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
4355,
/**/
4354,
/**/
Expand Down
4 changes: 0 additions & 4 deletions src/window.c
Expand Up @@ -1414,10 +1414,6 @@ win_init(win_T *newp, win_T *oldp, int flags UNUSED)
#endif

win_init_some(newp, oldp);

#ifdef FEAT_SYN_HL
check_colorcolumn(newp);
#endif
#ifdef FEAT_TERMINAL
term_update_wincolor(newp);
#endif
Expand Down

0 comments on commit 0f7ff85

Please sign in to comment.