From 5081d202475328a920c0bdcab990e8da84128c13 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Thu, 25 Jun 2015 18:36:26 +0200 Subject: [PATCH] patch 7.4.760 Problem: Spelling mistakes are not displayed after ":syn spell". Solution: Force a redraw after ":syn spell" command. (Christian Brabandt) --- src/syntax.c | 6 ++++++ src/version.c | 2 ++ 2 files changed, 8 insertions(+) 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 @@ -741,6 +741,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 760, /**/ 759, /**/ -- 2.40.0