]> granicus.if.org Git - nethack/commitdiff
from <Someone>
authornethack.allison <nethack.allison>
Sat, 1 Jun 2002 23:55:07 +0000 (23:55 +0000)
committernethack.allison <nethack.allison>
Sat, 1 Jun 2002 23:55:07 +0000 (23:55 +0000)
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.

win/win32/mhmenu.c

index c6a533a440d3862bdcfcc6f2ce1328db99d92be2..e7558d2ee6183cbf8ed71df03d9a4292a68aadb8 100644 (file)
@@ -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; i<data->menu.size;  i++) {
                        if( data->how != PICK_NONE ) {
                                if( data->menu.items[i].group_accel && 
                                        !strchr(data->menu.gacc, data->menu.items[i].group_accel) ) {