patch 9.1.1953: gui_mch_set_titlebar_colors() is excessively called
Commit:
https://github.com/vim/vim/commit/d30e76389ca9bed4346690f759f29295fdcf0f27
Author: Mao-Yining <
mao.y...@outlook.com>
Date: Sat Dec 6 10:04:06 2025 +0100
patch 9.1.1953: gui_mch_set_titlebar_colors() is excessively called
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.y...@outlook.com>
Signed-off-by: Christian Brabandt <
c...@256bit.org>
diff --git a/src/gui.c b/src/gui.c
index 6ac166277..4f658c828 100644
--- 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)
diff --git a/src/version.c b/src/version.c
index 4924bc84d..ef8c96fa3 100644
--- a/src/version.c
+++ b/src/version.c
@@ -729,6 +729,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1953,
/**/
1952,
/**/