mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
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:
@@ -3040,6 +3040,30 @@ did_set_matchpairs(optset_T *args)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/*
|
||||
* Process the updated 'messagesopt' option value.
|
||||
*/
|
||||
char *
|
||||
did_set_messagesopt(optset_T *args UNUSED)
|
||||
{
|
||||
if (messagesopt_changed() == FAIL)
|
||||
return e_invalid_argument;
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
int
|
||||
expand_set_messagesopt(optexpand_T *args, int *numMatches, char_u ***matches)
|
||||
{
|
||||
static char *(p_meo_values[]) = {"hit-enter", "wait:", "history:", NULL};
|
||||
return expand_set_opt_string(
|
||||
args,
|
||||
p_meo_values,
|
||||
ARRAY_LENGTH(p_meo_values) - 1,
|
||||
numMatches,
|
||||
matches);
|
||||
}
|
||||
|
||||
#if defined(FEAT_SPELL) || defined(PROTO)
|
||||
/*
|
||||
* The 'mkspellmem' option is changed.
|
||||
|
Reference in New Issue
Block a user