mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 7.4.1901
Problem: Win32: the "Disabled" menu items would appear enabled. Solution: Use submenu_id if there is a parent. (Shane Harper, closes #834)
This commit is contained in:
@@ -7026,10 +7026,8 @@ gui_mch_menu_grey(
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
if (grey)
|
(void)EnableMenuItem(menu->parent ? menu->parent->submenu_id : s_menuBar,
|
||||||
EnableMenuItem(s_menuBar, menu->id, MF_BYCOMMAND | MF_GRAYED);
|
menu->id, MF_BYCOMMAND | (grey ? MF_GRAYED : MF_ENABLED));
|
||||||
else
|
|
||||||
EnableMenuItem(s_menuBar, menu->id, MF_BYCOMMAND | MF_ENABLED);
|
|
||||||
|
|
||||||
#ifdef FEAT_TEAROFF
|
#ifdef FEAT_TEAROFF
|
||||||
if ((menu->parent != NULL) && (IsWindow(menu->parent->tearoff_handle)))
|
if ((menu->parent != NULL) && (IsWindow(menu->parent->tearoff_handle)))
|
||||||
|
@@ -753,6 +753,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1901,
|
||||||
/**/
|
/**/
|
||||||
1900,
|
1900,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user