]> granicus.if.org Git - vim/commitdiff
patch 7.4.760 v7.4.760
authorBram Moolenaar <Bram@vim.org>
Thu, 25 Jun 2015 16:36:26 +0000 (18:36 +0200)
committerBram Moolenaar <Bram@vim.org>
Thu, 25 Jun 2015 16:36:26 +0000 (18:36 +0200)
Problem:    Spelling mistakes are not displayed after ":syn spell".
Solution:   Force a redraw after ":syn spell" command. (Christian Brabandt)

src/syntax.c
src/version.c

index aee2d6a305d442c3748c6b7b3f0a59fd170f11af..6900d573dbfbf3f0260bee3c5044556ad6fd4871 100644 (file)
@@ -3469,7 +3469,13 @@ syn_cmd_spell(eap, syncing)
     else if (STRNICMP(arg, "default", 7) == 0 && next - arg == 7)
        curwin->w_s->b_syn_spell = SYNSPL_DEFAULT;
     else
+    {
        EMSG2(_("E390: Illegal argument: %s"), arg);
+       return;
+    }
+
+    /* assume spell checking changed, force a redraw */
+    redraw_win_later(curwin, NOT_VALID);
 }
 
 /*
index 3958332eea3c3541459197f6556b7645fd5ac4f8..92cb4a7c4592d890ea7a2b3a3fda69c0d0f76077 100644 (file)
@@ -741,6 +741,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    760,
 /**/
     759,
 /**/