summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2015-06-25 18:36:26 +0200
committerBram Moolenaar <Bram@vim.org>2015-06-25 18:36:26 +0200
commit5081d202475328a920c0bdcab990e8da84128c13 (patch)
tree7039a063492be66db392542dc459a19fa02d98fa
parent9514b1f9a12f6d032f7d749dfb0e947332d1c5e1 (diff)
downloadvim-git-5081d202475328a920c0bdcab990e8da84128c13.tar.gz
patch 7.4.760v7.4.760
Problem: Spelling mistakes are not displayed after ":syn spell". Solution: Force a redraw after ":syn spell" command. (Christian Brabandt)
-rw-r--r--src/syntax.c6
-rw-r--r--src/version.c2
2 files changed, 8 insertions, 0 deletions
diff --git a/src/syntax.c b/src/syntax.c
index aee2d6a30..6900d573d 100644
--- 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);
}
/*
diff --git a/src/version.c b/src/version.c
index 3958332ee..92cb4a7c4 100644
--- a/src/version.c
+++ b/src/version.c
@@ -742,6 +742,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 760,
+/**/
759,
/**/
758,