]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.1953: gui_mch_set_titlebar_colors() is excessively called v9.1.1953
authorMao-Yining <mao.yining@outlook.com>
Sat, 6 Dec 2025 09:04:06 +0000 (10:04 +0100)
committerChristian Brabandt <cb@256bit.org>
Sat, 6 Dec 2025 09:04:06 +0000 (10:04 +0100)
Problem:  gui_mch_set_titlebar_colors() doesn't need to be called when
          'go+=C' is not set.
Solution: Switch the default value to false.

closes: #18872

Signed-off-by: Mao-Yining <mao.yining@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/gui.c
src/version.c

index 6ac16627737d13f53bbce58e3027268ab57e291e..4f658c828fa8af3a932c2792b08bcdd5169865ab 100644 (file)
--- a/src/gui.c
+++ b/src/gui.c
@@ -3494,7 +3494,7 @@ gui_init_which_components(char_u *oldval UNUSED)
     int                using_tabline;
 #endif
 #ifdef FEAT_GUI_MSWIN
-    static int prev_titlebar = -1;
+    static int prev_titlebar = FALSE;
     int                using_titlebar = FALSE;
 #endif
 #if defined(FEAT_MENU)
index 4924bc84d43d03efba5ea4151dbd970f2eab862f..ef8c96fa3837a73919d9eb6de66abc14ca670fc2 100644 (file)
@@ -729,6 +729,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1953,
 /**/
     1952,
 /**/