Commit: patch 9.1.2047: MS-Windows: style issue in gui_w32.c

4 views
Skip to first unread message

Christian Brabandt

unread,
Jan 3, 2026, 12:16:04 PM (6 days ago) Jan 3
to vim...@googlegroups.com
patch 9.1.2047: MS-Windows: style issue in gui_w32.c

Commit: https://github.com/vim/vim/commit/bfd4f75b5a95d273ebce6aa69083606a1a41e7da
Author: Mao-Yining <101858210+...@users.noreply.github.com>
Date: Sat Jan 3 17:00:09 2026 +0000

patch 9.1.2047: MS-Windows: style issue in gui_w32.c

Problem: MS-Windows: style issue in gui_w32.c
Solution: Fix indentation, drop unnecessary braces
(Mao-Yining)

closes: #19073

Signed-off-by: Mao-Yining <101858210+...@users.noreply.github.com>
Signed-off-by: Hirohito Higashi <h.eas...@gmail.com>
Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/src/gui_w32.c b/src/gui_w32.c
index 6e12b9458..59f288079 100644
--- a/src/gui_w32.c
+++ b/src/gui_w32.c
@@ -7196,14 +7196,12 @@ gui_mch_menu_grey(
* is this a toolbar button?
*/
if (menu->submenu_id == (HMENU)-1)
- {
SendMessage(s_toolbarhwnd, TB_ENABLEBUTTON,
- (WPARAM)menu->id, (LPARAM) MAKELONG((grey ? FALSE : TRUE), 0));
- }
+ (WPARAM)menu->id, (LPARAM) MAKELONG((grey ? FALSE : TRUE), 0));
else
# endif
- (void)EnableMenuItem(menu->parent ? menu->parent->submenu_id : s_menuBar,
- menu->id, MF_BYCOMMAND | (grey ? MF_GRAYED : MF_ENABLED));
+ (void)EnableMenuItem(menu->parent ? menu->parent->submenu_id : s_menuBar,
+ menu->id, MF_BYCOMMAND | (grey ? MF_GRAYED : MF_ENABLED));

# ifdef FEAT_TEAROFF
if ((menu->parent != NULL) && (IsWindow(menu->parent->tearoff_handle)))
diff --git a/src/version.c b/src/version.c
index ab0608825..163f4fb72 100644
--- a/src/version.c
+++ b/src/version.c
@@ -734,6 +734,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 2047,
/**/
2046,
/**/
Reply all
Reply to author
Forward
0 new messages