if (!(messages_flags_new & MESSAGES_HISTORY))
return FAIL;
- // "history" must be <= 10000
- if (messages_history_new > 10000)
+ if (messages_history_new < 0 || messages_history_new > 10000)
return FAIL;
- // "wait" must be <= 10000
- if (messages_wait_new > 10000)
+ if (messages_wait_new < 0 || messages_wait_new > 10000)
return FAIL;
msg_flags = messages_flags_new;
\ 'hit-enter,history:1,wait:1'],
\ ['xxx', 'history:500', 'hit-enter,history:-1',
\ 'hit-enter,history:10001', 'history:0,wait:10001',
- \ 'hit-enter']],
+ \ 'hit-enter', 'history:10,wait:99999999999999999999',
+ \ 'history:99999999999999999999,wait:10', 'wait:10',
+ \ 'history:-10', 'history:10,wait:-10']],
\ 'mkspellmem': [['10000,100,12'], ['', 'xxx', '10000,100']],
\ 'mouse': [['', 'n', 'v', 'i', 'c', 'h', 'a', 'r', 'nvi'],
\ ['xxx', 'n,v,i']],