0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.1.0198: there is no hint that syntax is disabled for 'redrawtime'

Problem:    There is no hint that syntax is disabled for 'redrawtime'.
Solution:   Add a message.
This commit is contained in:
Bram Moolenaar
2018-07-20 19:56:10 +02:00
parent 9e42c86648
commit 0a6efcd27d
2 changed files with 10 additions and 3 deletions

View File

@@ -3355,8 +3355,11 @@ syn_regexec(
}
#endif
#ifdef FEAT_RELTIME
if (timed_out)
if (timed_out && !syn_win->w_s->b_syn_slow)
{
syn_win->w_s->b_syn_slow = TRUE;
MSG(_("'redrawtime' exceeded, syntax highlighting disabled"));
}
#endif
if (r > 0)
@@ -3575,11 +3578,13 @@ syn_cmd_iskeyword(exarg_T *eap, int syncing UNUSED)
if (*arg == NUL)
{
MSG_PUTS("\n");
MSG_PUTS(_("syntax iskeyword "));
if (curwin->w_s->b_syn_isk != empty_option)
{
MSG_PUTS(_("syntax iskeyword "));
msg_outtrans(curwin->w_s->b_syn_isk);
}
else
msg_outtrans((char_u *)"not set");
msg_outtrans((char_u *)_("syntax iskeyword not set"));
}
else
{

View File

@@ -789,6 +789,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
198,
/**/
197,
/**/