'messagesopt' 'mopt' string (default "hit-enter,history:500")
global
- Option settings when outputting messages. It can consist of the
+ Option settings for outputting messages. It can consist of the
following items. Items must be separated by a comma.
- hit-enter Use |hit-enter| prompt when the message is longer than
+ hit-enter Use a |hit-enter| prompt when the message is longer than
'cmdheight' size.
- wait:{n} Ignored when "hit-enter" is present. Instead of using
- |hit-enter| prompt, will simply wait for {n}
- 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.
+ wait:{n} Instead of using a |hit-enter| prompt, simply wait for
+ {n} milliseconds so that the user has a chance to read
+ the message. The maximum value of {n} is 10000. Use
+ 0 to disable the wait (but then the user may miss an
+ important message).
+ This item is ignored when "hit-enter" is present, but
+ required when "hit-enter" is not present.
history:{n} Determines how many entries are remembered in the
|:messages| history. The maximum value is 10000.
Setting it to zero clears the message history.
+ This item must always be present.
*'mkspellmem'* *'msm'*
'mkspellmem' 'msm' string (default "460000,2000,500")
" These commands create the option window.
"
" Maintainer: The Vim Project <https://github.com/vim/vim>
-" Last Change: 2024 Jul 12
+" Last Change: 2024 Dec 07
" Former Maintainer: Bram Moolenaar <Bram@vim.org>
" If there already is an option window, jump to that one.
call <SID>BinOptionG("terse", &terse)
call <SID>AddOption("shortmess", gettext("list of flags to make messages shorter"))
call <SID>OptionG("shm", &shm)
-call <SID>AddOption("messagesopt", gettext("Option settings when outputting messages"))
+call <SID>AddOption("messagesopt", gettext("options for outputting messages"))
call <SID>OptionG("mopt", &mopt)
call <SID>AddOption("showcmd", gettext("show (partial) command keys in location given by 'showcmdloc'"))
let &sc = s:old_sc
int messages_wait_new = 0;
int messages_history_new = 0;
- p = p_meo;
+ p = p_mopt;
while (*p != NUL)
{
if (STRNCMP(p, MESSAGES_OPT_HIT_ENTER,
#ifdef FEAT_MENU
EXTERN long p_mis; // 'menuitems'
#endif
-EXTERN char_u *p_meo; // 'messagesopt'
+EXTERN char_u *p_mopt; // 'messagesopt'
#ifdef FEAT_SPELL
EXTERN char_u *p_msm; // 'mkspellmem'
#endif
(char_u *)NULL, PV_NONE, NULL, NULL,
{(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
{"messagesopt","mopt", P_STRING|P_ALLOCED|P_VI_DEF|P_ONECOMMA|P_COLON|P_NODUP,
- (char_u *)&p_meo, PV_NONE, did_set_messagesopt, expand_set_messagesopt,
+ (char_u *)&p_mopt, PV_NONE, did_set_messagesopt, expand_set_messagesopt,
{(char_u *)"hit-enter,history:500", (char_u *)NULL} SCTX_INIT},
{"mkspellmem", "msm", P_STRING|P_VI_DEF|P_EXPAND|P_SECURE,
#ifdef FEAT_SPELL
int
expand_set_messagesopt(optexpand_T *args, int *numMatches, char_u ***matches)
{
- static char *(p_meo_values[]) = {"hit-enter", "wait:", "history:", NULL};
+ static char *(p_mopt_values[]) = {"hit-enter", "wait:", "history:", NULL};
return expand_set_opt_string(
args,
- p_meo_values,
- ARRAY_LENGTH(p_meo_values) - 1,
+ p_mopt_values,
+ ARRAY_LENGTH(p_mopt_values) - 1,
numMatches,
matches);
}
" Check hit-enter prompt
call term_sendkeys(buf, ":set messagesopt=hit-enter,history:500\n")
- call term_sendkeys(buf, ":echo 'foo' | echo 'bar' echo 'baz'\n")
+ call term_sendkeys(buf, ":echo 'foo' | echo 'bar' | echo 'baz'\n")
call WaitForAssert({-> assert_equal('Press ENTER or type command to continue', term_getline(buf, 6))})
" Check no hit-enter prompt when "wait:" is set
call term_sendkeys(buf, ":set messagesopt=wait:100,history:500\n")
- call term_sendkeys(buf, ":echo 'foo' | echo 'bar' echo 'baz'\n")
+ call term_sendkeys(buf, ":echo 'foo' | echo 'bar' | echo 'baz'\n")
call WaitForAssert({-> assert_equal(' 0,0-1 All', term_getline(buf, 6))})
" clean up
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 911,
/**/
910,
/**/