s = (sc *)nmalloc(sizeof(sc));
s->execute = TRUE; /* overridden as needed below */
-
#ifndef DISABLE_HELP
if (!strcasecmp(input, "help"))
s->scfunc = do_help_void;
s->scfunc = do_up_void;
else if (!strcasecmp(input, "down"))
s->scfunc = do_down_void;
- else if (!strcasecmp(input, "pageup")
- || !strcasecmp(input, "prevpage"))
+ else if (!strcasecmp(input, "pageup") ||
+ !strcasecmp(input, "prevpage"))
s->scfunc = do_page_up;
- else if (!strcasecmp(input, "pagedown")
- || !strcasecmp(input, "nextpage"))
+ else if (!strcasecmp(input, "pagedown") ||
+ !strcasecmp(input, "nextpage"))
s->scfunc = do_page_down;
else if (!strcasecmp(input, "cut"))
s->scfunc = do_cut_text_void;
else if (!strcasecmp(input, "uncut"))
s->scfunc = do_uncut_text;
else if (!strcasecmp(input, "curpos") ||
- !strcasecmp(input, "cursorpos"))
+ !strcasecmp(input, "cursorpos"))
s->scfunc = do_cursorpos_void;
else if (!strcasecmp(input, "firstline"))
s->scfunc = do_first_line;
else if (!strcasecmp(input, "mark"))
s->scfunc = do_mark;
else if (!strcasecmp(input, "searchagain") ||
- !strcasecmp(input, "research"))
+ !strcasecmp(input, "research"))
s->scfunc = do_research;
else if (!strcasecmp(input, "copytext"))
s->scfunc = do_copy_text;
s->scfunc = get_history_newer_void;
s->execute = FALSE;
} else if (!strcasecmp(input, "nohelp") ||
- !strcasecmp(input, "nohelp")) {
+ !strcasecmp(input, "nohelp")) {
s->scfunc = do_toggle_void;
s->execute = FALSE;
s->toggle = NO_HELP;
}
#endif /* NANO_TINY */
else if (!strcasecmp(input, "right") ||
- !strcasecmp(input, "forward"))
+ !strcasecmp(input, "forward"))
s->scfunc = do_right;
else if (!strcasecmp(input, "left") ||
- !strcasecmp(input, "back"))
+ !strcasecmp(input, "back"))
s->scfunc = do_left;
else if (!strcasecmp(input, "up") ||
- !strcasecmp(input, "prevline"))
+ !strcasecmp(input, "prevline"))
s->scfunc = do_up_void;
else if (!strcasecmp(input, "down") ||
- !strcasecmp(input, "nextline"))
+ !strcasecmp(input, "nextline"))
s->scfunc = do_down_void;
else if (!strcasecmp(input, "home"))
s->scfunc = do_home;
s->scfunc = case_sens_void;
s->execute = FALSE;
} else if (!strcasecmp(input, "regexp") ||
- !strcasecmp(input, "regex")) {
+ !strcasecmp(input, "regex")) {
s->scfunc = regexp_void;
s->execute = FALSE;
} else if (!strcasecmp(input, "dontreplace")) {
s->scfunc = gototext_void;
s->execute = FALSE;
} else if (!strcasecmp(input, "browser") ||
- !strcasecmp(input, "tofiles")) {
+ !strcasecmp(input, "tofiles")) {
s->scfunc = to_files_void;
s->execute = FALSE;
} else if (!strcasecmp(input, "dosformat")) {
free(s);
return NULL;
}
-
return s;
-
}
#ifdef ENABLE_NANORC