]> granicus.if.org Git - nethack/commitdiff
cmdhelp build bug
authorPatR <rankin@nethack.org>
Thu, 16 Jun 2016 07:01:06 +0000 (00:01 -0700)
committerPatR <rankin@nethack.org>
Thu, 16 Jun 2016 07:01:06 +0000 (00:01 -0700)
dowhatdoes_core() was using iflags.altmeta unconditionally but
its availability and usefulness is conditional upon #if ALTMETA.

src/pager.c

index f1dc84126d295ba60a45ff5a2bc273357b8183a0..661cf04a5a37933ee30019d36f245b3832d21101 100644 (file)
@@ -1541,13 +1541,17 @@ dowhatdoes()
 
     if (!once) {
         pline("Ask about '&' or '?' to get more info.%s",
-              iflags.altmeta ? "  (For ESC, type it twice.)" : "");
+#ifdef ALTMETA
+              iflags.altmeta ? "  (For ESC, type it twice.)" :
+#endif
+              "");
         once = TRUE;
     }
 #if defined(UNIX) || defined(VMS)
     introff(); /* disables ^C but not ^\ */
 #endif
     q = yn_function("What command?", (char *) 0, '\0');
+#ifdef ALTMETA
     if (q == '\033' && iflags.altmeta) {
         /* in an ideal world, we would know whether another keystroke
            was already pending, but this is not an ideal world...
@@ -1557,6 +1561,7 @@ dowhatdoes()
         if (q != '\033')
             q = (char) ((uchar) q | 0200);
     }
+#endif /*ALTMETA*/
 #if defined(UNIX) || defined(VMS)
     intron(); /* reenables ^C */
 #endif