changeset 27659:b5ebc885c25c v8.2.4355

patch 8.2.4355: unnecessary call to check_colorcolumn() Commit: https://github.com/vim/vim/commit/0f7ff851cb721bb3c07261adbf82b591229f530d Author: Sean Dewar <seandewar@users.noreply.github.com> Date: Sat Feb 12 11:51:25 2022 +0000 patch 8.2.4355: unnecessary call to check_colorcolumn() Problem: Unnecessary call to check_colorcolumn(). Solution: Remove the call. (Sean Dewar, closes https://github.com/vim/vim/issues/9748)
author Bram Moolenaar <Bram@vim.org>
date Sat, 12 Feb 2022 13:00:04 +0100
parents 42a0222defef
children 6322a4258c29
files src/option.c src/version.c src/window.c
diffstat 3 files changed, 3 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/option.c
+++ b/src/option.c
@@ -5604,7 +5604,7 @@ win_copy_options(win_T *wp_from, win_T *
  * 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);
--- 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,
--- a/src/window.c
+++ b/src/window.c
@@ -1414,10 +1414,6 @@ win_init(win_T *newp, win_T *oldp, int f
 #endif
 
     win_init_some(newp, oldp);
-
-#ifdef FEAT_SYN_HL
-    check_colorcolumn(newp);
-#endif
 #ifdef FEAT_TERMINAL
     term_update_wincolor(newp);
 #endif