From bfd4f75b5a95d273ebce6aa69083606a1a41e7da Mon Sep 17 00:00:00 2001 From: Mao-Yining <101858210+mao-yining@users.noreply.github.com> Date: Sat, 3 Jan 2026 17:00:09 +0000 Subject: [PATCH] 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+mao-yining@users.noreply.github.com> Signed-off-by: Hirohito Higashi Signed-off-by: Christian Brabandt --- src/gui_w32.c | 8 +++----- src/version.c | 2 ++ 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/gui_w32.c b/src/gui_w32.c index 6e12b9458d..59f2880797 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 ab06088256..163f4fb72e 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, /**/