forked from aniani/vim
patch 9.1.0908: not possible to configure :messages
Problem: not possible to configure :messages Solution: add the 'messagesopt' option (Shougo Matsushita) closes: #16068 Co-authored-by: h_east <h.east.727@gmail.com> Signed-off-by: Shougo Matsushita <Shougo.Matsu@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
25
src/option.c
25
src/option.c
@@ -3864,31 +3864,6 @@ did_set_number_relativenumber(optset_T *args UNUSED)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/*
|
||||
* Process the updated 'msghistory' option value.
|
||||
*/
|
||||
char *
|
||||
did_set_msghistory(optset_T *args UNUSED)
|
||||
{
|
||||
char *errmsg = NULL;
|
||||
|
||||
// 'msghistory' must be positive
|
||||
if (p_mhi < 0)
|
||||
{
|
||||
errmsg = e_argument_must_be_positive;
|
||||
p_mhi = 0;
|
||||
}
|
||||
else if (p_mhi > 10000)
|
||||
{
|
||||
errmsg = e_invalid_argument;
|
||||
p_mhi = 10000;
|
||||
}
|
||||
|
||||
check_msg_hist();
|
||||
|
||||
return errmsg;
|
||||
}
|
||||
|
||||
#if defined(FEAT_LINEBREAK) || defined(PROTO)
|
||||
/*
|
||||
* Process the new 'numberwidth' option value.
|
||||
|
Reference in New Issue
Block a user