Skip to content

Commit 0a6efcd

Browse files
committed
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.
1 parent 9e42c86 commit 0a6efcd

2 files changed

Lines changed: 10 additions & 3 deletions

File tree

src/syntax.c

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3355,8 +3355,11 @@ syn_regexec(
33553355
}
33563356
#endif
33573357
#ifdef FEAT_RELTIME
3358-
if (timed_out)
3358+
if (timed_out && !syn_win->w_s->b_syn_slow)
3359+
{
33593360
syn_win->w_s->b_syn_slow = TRUE;
3361+
MSG(_("'redrawtime' exceeded, syntax highlighting disabled"));
3362+
}
33603363
#endif
33613364

33623365
if (r > 0)
@@ -3575,11 +3578,13 @@ syn_cmd_iskeyword(exarg_T *eap, int syncing UNUSED)
35753578
if (*arg == NUL)
35763579
{
35773580
MSG_PUTS("\n");
3578-
MSG_PUTS(_("syntax iskeyword "));
35793581
if (curwin->w_s->b_syn_isk != empty_option)
3582+
{
3583+
MSG_PUTS(_("syntax iskeyword "));
35803584
msg_outtrans(curwin->w_s->b_syn_isk);
3585+
}
35813586
else
3582-
msg_outtrans((char_u *)"not set");
3587+
msg_outtrans((char_u *)_("syntax iskeyword not set"));
35833588
}
35843589
else
35853590
{

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -789,6 +789,8 @@ static char *(features[]) =
789789

790790
static int included_patches[] =
791791
{ /* Add new patch number below this line */
792+
/**/
793+
198,
792794
/**/
793795
197,
794796
/**/

0 commit comments

Comments
 (0)