diff options
Diffstat (limited to 'contrib/less/optfunc.c')
| -rw-r--r-- | contrib/less/optfunc.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/contrib/less/optfunc.c b/contrib/less/optfunc.c index fda46b588f21..9c0117cc84ff 100644 --- a/contrib/less/optfunc.c +++ b/contrib/less/optfunc.c @@ -72,6 +72,7 @@ extern int nosearch_header_lines; extern int nosearch_header_cols; extern POSITION header_start_pos; extern char *init_header; +extern char *first_cmd_at_prompt; #if LOGFILE extern char *namelogfile; extern lbool force_logfile; @@ -974,6 +975,23 @@ public void opt_filesize(int type, constant char *s) } /* + * Handler for the --cmd option. + */ + /*ARGSUSED*/ +public void opt_first_cmd_at_prompt(int type, constant char *s) +{ + switch (type) + { + case INIT: + case TOGGLE: + first_cmd_at_prompt = save(s); + break; + case QUERY: + break; + } +} + +/* * Handler for the --intr option. */ /*ARGSUSED*/ |
