]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.2047: MS-Windows: style issue in gui_w32.c v9.1.2047
authorMao-Yining <101858210+mao-yining@users.noreply.github.com>
Sat, 3 Jan 2026 17:00:09 +0000 (17:00 +0000)
committerChristian Brabandt <cb@256bit.org>
Sat, 3 Jan 2026 17:00:09 +0000 (17:00 +0000)
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 <h.east.727@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/gui_w32.c
src/version.c

index 6e12b9458dab1feca5d64d10af3ac9cc8b7388e8..59f2880797afe7ed147bd38c8f7daac7fa88d78b 100644 (file)
@@ -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)))
index ab06088256e0e41035798631c17c7be48c437fff..163f4fb72ea90d6ad3e448e6f0e778bf011e1d2c 100644 (file)
@@ -734,6 +734,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2047,
 /**/
     2046,
 /**/