Skip to content

Commit bfd4f75

Browse files
mao-yiningchrisbra
authored andcommitted
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 <h.east.727@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
1 parent 8be4610 commit bfd4f75

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/gui_w32.c

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7196,14 +7196,12 @@ gui_mch_menu_grey(
71967196
* is this a toolbar button?
71977197
*/
71987198
if (menu->submenu_id == (HMENU)-1)
7199-
{
72007199
SendMessage(s_toolbarhwnd, TB_ENABLEBUTTON,
7201-
(WPARAM)menu->id, (LPARAM) MAKELONG((grey ? FALSE : TRUE), 0));
7202-
}
7200+
(WPARAM)menu->id, (LPARAM) MAKELONG((grey ? FALSE : TRUE), 0));
72037201
else
72047202
# endif
7205-
(void)EnableMenuItem(menu->parent ? menu->parent->submenu_id : s_menuBar,
7206-
menu->id, MF_BYCOMMAND | (grey ? MF_GRAYED : MF_ENABLED));
7203+
(void)EnableMenuItem(menu->parent ? menu->parent->submenu_id : s_menuBar,
7204+
menu->id, MF_BYCOMMAND | (grey ? MF_GRAYED : MF_ENABLED));
72077205

72087206
# ifdef FEAT_TEAROFF
72097207
if ((menu->parent != NULL) && (IsWindow(menu->parent->tearoff_handle)))

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -734,6 +734,8 @@ static char *(features[]) =
734734

735735
static int included_patches[] =
736736
{ /* Add new patch number below this line */
737+
/**/
738+
2047,
737739
/**/
738740
2046,
739741
/**/

0 commit comments

Comments
 (0)