patch 8.2.4355: unnecessary call to check_colorcolumn() v8.2.4355
authorSean Dewar <seandewar@users.noreply.github.com>
Sat, 12 Feb 2022 11:51:25 +0000 (11:51 +0000)
committerBram Moolenaar <Bram@vim.org>
Sat, 12 Feb 2022 11:51:25 +0000 (11:51 +0000)
Problem:    Unnecessary call to check_colorcolumn().
Solution:   Remove the call. (Sean Dewar, closes #9748)

src/option.c
src/version.c
src/window.c

index 03274a432cc3751053f7abfaa39e4a816ec94e02..91ea4138d39717df8a4ab42cc0fa9cc6095518ad 100644 (file)
@@ -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);
index 2476818eb5427d2a8297b77351fbec36bbb365b6..1fc3bc64f2ba4deeb6af101dd75c123777863fa7 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    4355,
 /**/
     4354,
 /**/
index 4fb92e035d929bad74beba4d2f98e71e78c78b8a..b2f01f67d359fc10bf6013a30406e00914d1259d 100644 (file)
@@ -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