]> granicus.if.org Git - vim/commitdiff
patch 8.1.0198: there is no hint that syntax is disabled for 'redrawtime' v8.1.0198
authorBram Moolenaar <Bram@vim.org>
Fri, 20 Jul 2018 17:56:10 +0000 (19:56 +0200)
committerBram Moolenaar <Bram@vim.org>
Fri, 20 Jul 2018 17:56:10 +0000 (19:56 +0200)
Problem:    There is no hint that syntax is disabled for 'redrawtime'.
Solution:   Add a message.

src/syntax.c
src/version.c

index 7db69183ec4bfc4ef64bcf05fa8e600c995bf69c..3c46a0e0e698e010772e23b3b8b1cd5d4df7b36b 100644 (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
     {
index 86413b0a062a48a0b228570e518f4b26e4770852..691800cfdf2a73c69d6f5ae1a31b13f6b9425d30 100644 (file)
@@ -789,6 +789,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    198,
 /**/
     197,
 /**/