diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/message.c | 5 | ||||
-rw-r--r-- | src/nvim/options.lua | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/nvim/message.c b/src/nvim/message.c index a32a06edca..f6424c4644 100644 --- a/src/nvim/message.c +++ b/src/nvim/message.c @@ -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; diff --git a/src/nvim/options.lua b/src/nvim/options.lua index a5d5a45b59..e08f3d1410 100644 --- a/src/nvim/options.lua +++ b/src/nvim/options.lua @@ -5467,6 +5467,7 @@ return { milliseconds so the user has a chance to read the message, use 0 to disable sleep (but then the user may miss an important message). + The maximum value is 10000. history:{n} Determines how many entries are remembered in the |:messages| history. The maximum value is 10000. |