vim-patch:9.1.0883: message history cleanup is missing some tests (#31331)

Problem:  message history cleanup is missing some tests
Solution: Add tests, refactor common code into did_set_msghistory()
          (Shougo Matsushita)

closes: vim/vim#16078

9f860a14c3

Co-authored-by: Shougo Matsushita <Shougo.Matsu@gmail.com>
Co-authored-by: Milly <milly.ca@gmail.com>
This commit is contained in:
zeertzjq
2024-11-24 22:36:33 +08:00
committed by GitHub
parent ef4f13d85c
commit 5c60306442
6 changed files with 47 additions and 5 deletions

View File

@@ -5894,10 +5894,12 @@ return {
},
{
abbreviation = 'mhi',
cb = 'did_set_msghistory',
defaults = { if_true = 500 },
desc = [=[
Determines how many entries are remembered in the |:messages| history.
The maximum value is 10000.
Setting it to zero clears the message history.
]=],
full_name = 'msghistory',
scope = { 'global' },