mirror of
https://github.com/neovim/neovim.git
synced 2025-10-16 14:56:08 +00:00
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: vim/vim#16183
d9e9f89e0f
Co-authored-by: Shougo Matsushita <Shougo.Matsu@gmail.com>
This commit is contained in:
@@ -1103,6 +1103,11 @@ int messagesopt_changed(void)
|
||||
return FAIL;
|
||||
}
|
||||
|
||||
// "wait" must be <= 10000
|
||||
if (messages_wait_new > 10000) {
|
||||
return FAIL;
|
||||
}
|
||||
|
||||
msg_flags = messages_flags_new;
|
||||
msg_wait = messages_wait_new;
|
||||
|
||||
|
Reference in New Issue
Block a user