cmdhelp build bug
dowhatdoes_core() was using iflags.altmeta unconditionally but its availability and usefulness is conditional upon #if ALTMETA.
This commit is contained in:
+6
-1
@@ -1541,13 +1541,17 @@ dowhatdoes()
|
|||||||
|
|
||||||
if (!once) {
|
if (!once) {
|
||||||
pline("Ask about '&' or '?' to get more info.%s",
|
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;
|
once = TRUE;
|
||||||
}
|
}
|
||||||
#if defined(UNIX) || defined(VMS)
|
#if defined(UNIX) || defined(VMS)
|
||||||
introff(); /* disables ^C but not ^\ */
|
introff(); /* disables ^C but not ^\ */
|
||||||
#endif
|
#endif
|
||||||
q = yn_function("What command?", (char *) 0, '\0');
|
q = yn_function("What command?", (char *) 0, '\0');
|
||||||
|
#ifdef ALTMETA
|
||||||
if (q == '\033' && iflags.altmeta) {
|
if (q == '\033' && iflags.altmeta) {
|
||||||
/* in an ideal world, we would know whether another keystroke
|
/* in an ideal world, we would know whether another keystroke
|
||||||
was already pending, but this is not an ideal world...
|
was already pending, but this is not an ideal world...
|
||||||
@@ -1557,6 +1561,7 @@ dowhatdoes()
|
|||||||
if (q != '\033')
|
if (q != '\033')
|
||||||
q = (char) ((uchar) q | 0200);
|
q = (char) ((uchar) q | 0200);
|
||||||
}
|
}
|
||||||
|
#endif /*ALTMETA*/
|
||||||
#if defined(UNIX) || defined(VMS)
|
#if defined(UNIX) || defined(VMS)
|
||||||
intron(); /* reenables ^C */
|
intron(); /* reenables ^C */
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user