# HG changeset patch # User Christian Brabandt # Date 1465073105 -7200 # Node ID 9940e9b2a725fa31e6a2cac8f478be55d95232ba # Parent 5006daf28c9355c115fc6910bf0bde081c5e3fd6 commit https://github.com/vim/vim/commit/762f1754370a1278167c8cba6c047ef319fc099c Author: Bram Moolenaar Date: Sat Jun 4 22:36:17 2016 +0200 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 https://github.com/vim/vim/issues/834) diff --git a/src/gui_w32.c b/src/gui_w32.c --- a/src/gui_w32.c +++ b/src/gui_w32.c @@ -7026,10 +7026,8 @@ gui_mch_menu_grey( } else #endif - if (grey) - EnableMenuItem(s_menuBar, menu->id, MF_BYCOMMAND | MF_GRAYED); - else - EnableMenuItem(s_menuBar, menu->id, MF_BYCOMMAND | 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 --- a/src/version.c +++ b/src/version.c @@ -754,6 +754,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1901, +/**/ 1900, /**/ 1899,