From: nethack.allison Date: Sat, 1 Jun 2002 23:55:07 +0000 (+0000) Subject: from X-Git-Tag: MOVE2GIT~2730 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e996f36748355f5e1a39197a1c52fc7ef87d4e23;p=nethack from In item-selection menus, as you know one can press "=" to select all rings, say. This doesn't work if the letters run out before you get to the rings, however (because there are so many items). Menu code did not check group accelerators on items without assigned letters (if the letters run out). Fixed. --- diff --git a/win/win32/mhmenu.c b/win/win32/mhmenu.c index c6a533a44..e7558d2ee 100644 --- a/win/win32/mhmenu.c +++ b/win/win32/mhmenu.c @@ -141,8 +141,10 @@ int mswin_menu_window_select_menu (HWND hWnd, int how, MENU_ITEM_P ** _selected) next_char ++; } + } - /* collect group accelerators */ + /* collect group accelerators */ + for( i=0; imenu.size; i++) { if( data->how != PICK_NONE ) { if( data->menu.items[i].group_accel && !strchr(data->menu.gacc, data->menu.items[i].group_accel) ) {