1
0
forked from aniani/vim

patch 9.1.0910: 'messagesopt' does not check max wait time

Problem:  'messagesopt' does not check max wait time
          (after v9.1.0908)
Solution: Check for max wait value
          (Shougo Matsushita)

closes: #16183

Signed-off-by: Shougo Matsushita <Shougo.Matsu@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Shougo Matsushita
2024-12-07 16:00:25 +01:00
committed by Christian Brabandt
parent 72212c9bea
commit d9e9f89e0f
4 changed files with 10 additions and 2 deletions

View File

@@ -1137,6 +1137,10 @@ messagesopt_changed(void)
if (messages_history_new > 10000)
return FAIL;
// "wait" must be <= 10000
if (messages_wait_new > 10000)
return FAIL;
msg_flags = messages_flags_new;
msg_wait = messages_wait_new;