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

Commit: 
https://github.com/vim/vim/commit/bfd4f75b5a95d273ebce6aa69083606a1a41e7da
Author: Mao-Yining <[email protected]>
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 <[email protected]>
    Signed-off-by: Hirohito Higashi <[email protected]>
    Signed-off-by: Christian Brabandt <[email protected]>

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,
 /**/

-- 
-- 
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/E1vc5DT-00CJjb-D6%40256bit.org.

Raspunde prin e-mail lui