patch 9.1.1953: gui_mch_set_titlebar_colors() is excessively called
Commit:
https://github.com/vim/vim/commit/d30e76389ca9bed4346690f759f29295fdcf0f27
Author: Mao-Yining <[email protected]>
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 <[email protected]>
Signed-off-by: Christian Brabandt <[email protected]>
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,
/**/
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/vim_dev/E1vRoNf-001QW7-4K%40256bit.org.