diff options
author | pgen <p.gen.progs@gmail.com> | 2022-07-19 22:53:10 +0200 |
---|---|---|
committer | pgen <p.gen.progs@gmail.com> | 2022-07-19 23:08:19 +0200 |
commit | 848c6253ac55373bf0c4ef4e5eb12a8921865d21 (patch) | |
tree | 9237a93a478bc2a4d9a4fd99e8d2ffd2211b434a | |
parent | ccfa498b47c90db1d0cd66d5815f13abc531dfeb (diff) |
Allow multiple instances of the "-limits" option
Also corrects a word limit check error.
-rw-r--r-- | smenu.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -6809,7 +6809,7 @@ main(int argc, char * argv[]) "[visual_bell] " "[ignore_quotes] " "[incremental_search] " - "[limits #limit:value...] " + "[limits... #limit:value...] " "[forgotten_timeout #timeout] "; /* don't remove this space! */ main_spec_options = "[*copyright] " @@ -8505,7 +8505,7 @@ main(int argc, char * argv[]) /* One more word... */ /* """""""""""""""" */ - if (count == limits.words) + if (count + 1 >= limits.words) { fprintf(stderr, "The number of read words has reached the limit of %ld.\n", |