diff options
Diffstat (limited to 'src/nvim/option.c')
-rw-r--r-- | src/nvim/option.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/nvim/option.c b/src/nvim/option.c index 03b7c8cb14..efd52f9233 100644 --- a/src/nvim/option.c +++ b/src/nvim/option.c @@ -2874,6 +2874,13 @@ static const char *validate_num_option(OptIndex opt_idx, OptInt *newval, char *e return e_invarg; } break; + case kOptMsghistory: + if (value < 0) { + return e_positive; + } else if (value > 10000) { + return e_invarg; + } + break; case kOptPyxversion: if (value == 0) { *newval = 3; |