]> granicus.if.org Git - nethack/commitdiff
fix #H4095 - naming discoveries list
authorPatR <rankin@nethack.org>
Thu, 17 Dec 2015 02:16:39 +0000 (18:16 -0800)
committerPatR <rankin@nethack.org>
Thu, 17 Dec 2015 02:16:39 +0000 (18:16 -0800)
The menu for picking an item to name when using the "on discoveries list"
choice for #name or C when that list spanned multiple pages was exiting
for <space> instead of advancing to next page.  Space was being assigned
as the selection letter for class header lines, which made no sense.

doc/fixes36.1
src/o_init.c

index 8be5a603c91b278f36e7e72ddb1c4946d6add82b..f27e377eb48707c4c612c5380af2fde408d38b0c 100644 (file)
@@ -34,6 +34,8 @@ getpos() complaint about invalid movement keystroke didn't describe meta-chars
 'realtime' value in xlogfile was incorrect if 'checkpoint' option was active
 make a previously-discovered scroll written with marker while blind have its
        label known so it can be read while blind
+#name or C for discoveries list that spanned multiple pages would exit on
+       space instead of advancing to next page (workaround: use '>' instead)
 
 
 Platform- and/or Interface-Specific Fixes
index a6aef9f908572f0070995a5e32fafdca39b6f270..ec1f56f5a050993f2df6a6a43d9ceaa8aa4fbde5 100644 (file)
@@ -1,4 +1,4 @@
-/* NetHack 3.6 o_init.c        $NHDT-Date: 1449588093 2015/12/08 15:21:33 $  $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.21 $ */
+/* NetHack 3.6 o_init.c        $NHDT-Date: 1450318588 2015/12/17 02:16:28 $  $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.22 $ */
 /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
 /* NetHack may be freely redistributed.  See license for details. */
 
@@ -688,8 +688,8 @@ rename_disco()
 
             if (oclass != prev_class) {
                 any.a_int = 0;
-                add_menu(tmpwin, NO_GLYPH, &any, ' ', iflags.menu_headings,
-                         ATR_NONE, let_to_name(oclass, FALSE, FALSE),
+                add_menu(tmpwin, NO_GLYPH, &any, 0, 0, iflags.menu_headings,
+                         let_to_name(oclass, FALSE, FALSE),
                          MENU_UNSELECTED);
                 prev_class = oclass;
             }