patch 9.1.0883: message history cleanup is missing some tests

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

closes: #16078

Co-authored-by: zeertzjq <zeertzjq@outlook.com>
Co-authored-by: Milly <milly.ca@gmail.com>
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-11-24 13:48:05 +01:00
committed by Christian Brabandt
parent a01148d2cb
commit 9f860a14c3
8 changed files with 69 additions and 16 deletions

View File

@ -1,4 +1,4 @@
*options.txt* For Vim version 9.1. Last change: 2024 Nov 14
*options.txt* For Vim version 9.1. Last change: 2024 Nov 24
VIM REFERENCE MANUAL by Bram Moolenaar
@ -5923,6 +5923,8 @@ A jump table for the options with a short description can be found at |Q_op|.
global
Determines how many entries are remembered in the |:messages| history.
The maximum value is 10000.
Setting it to zero clears the message history.
*'mzquantum'* *'mzq'*
'mzquantum' 'mzq' number (default 100)