diff options
author | Sean Dewar <seandewar@users.noreply.github.com> | 2022-02-12 11:51:25 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-02-12 11:51:25 +0000 |
commit | 0f7ff851cb721bb3c07261adbf82b591229f530d (patch) | |
tree | 561e17d067e0b1d91619829c4c1375758ea97e4a | |
parent | d68b2fc034fa3c824e0d4d53745cfe9eb8c5ecd6 (diff) | |
download | vim-git-0f7ff851cb721bb3c07261adbf82b591229f530d.tar.gz |
patch 8.2.4355: unnecessary call to check_colorcolumn()v8.2.4355
Problem: Unnecessary call to check_colorcolumn().
Solution: Remove the call. (Sean Dewar, closes #9748)
-rw-r--r-- | src/option.c | 2 | ||||
-rw-r--r-- | src/version.c | 2 | ||||
-rw-r--r-- | src/window.c | 4 |
3 files changed, 3 insertions, 5 deletions
diff --git a/src/option.c b/src/option.c index 03274a432..91ea4138d 100644 --- a/src/option.c +++ b/src/option.c @@ -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); diff --git a/src/version.c b/src/version.c index 2476818eb..1fc3bc64f 100644 --- a/src/version.c +++ b/src/version.c @@ -751,6 +751,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 4355, +/**/ 4354, /**/ 4353, diff --git a/src/window.c b/src/window.c index 4fb92e035..b2f01f67d 100644 --- a/src/window.c +++ b/src/window.c @@ -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 |