diff src/syntax.c @ 6880:bcc0909b379e v7.4.760

patch 7.4.760 Problem: Spelling mistakes are not displayed after ":syn spell". Solution: Force a redraw after ":syn spell" command. (Christian Brabandt)
author Bram Moolenaar <bram@vim.org>
date Thu, 25 Jun 2015 18:36:26 +0200
parents 67e7a819c811
children dcc108222d70
line wrap: on
line diff
--- a/src/syntax.c
+++ b/src/syntax.c
@@ -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);
 }
 
 /*