diff options
Diffstat (limited to 'contrib/less/option.c')
-rw-r--r-- | contrib/less/option.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/contrib/less/option.c b/contrib/less/option.c index 5d18561..cd45281 100644 --- a/contrib/less/option.c +++ b/contrib/less/option.c @@ -149,7 +149,7 @@ scan_option(s) if (s == NULL) return; if (*str == '+') - every_first_cmd = save(++str); + every_first_cmd = save(str+1); else ungetsc(str); free(str); @@ -585,7 +585,6 @@ optstring(s, p_str, printopt, validchars) } else { if (*p == END_OPTION_STRING || - *p == ' ' || *p == '\t' || *p == '-' || (validchars != NULL && strchr(validchars, *p) == NULL)) /* End of option string. */ break; |