diff --git a/src/global.c b/src/global.c index 0575462172a3630ad2e0460ededa6422d238a2c6..9a5585e4ff825678336a2dfacb718258eb2cd53c 100644 --- a/src/global.c +++ b/src/global.c @@ -1332,13 +1332,16 @@ sc *strtosc(char *input) s->scfunc = do_undo; else if (!strcasecmp(input, "redo")) s->scfunc = do_redo; +#ifndef DISABLE_HISTORIES else if (!strcasecmp(input, "prevhistory")) { s->scfunc = get_history_older_void; s->execute = FALSE; } else if (!strcasecmp(input, "nexthistory")) { s->scfunc = get_history_newer_void; s->execute = FALSE; - } else if (!strcasecmp(input, "nohelp")) { + } +#endif + else if (!strcasecmp(input, "nohelp")) { s->scfunc = do_toggle_void; s->execute = FALSE; s->toggle = NO_HELP;