diff options
author | Bram Moolenaar <Bram@vim.org> | 2015-06-25 18:36:26 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2015-06-25 18:36:26 +0200 |
commit | 5081d202475328a920c0bdcab990e8da84128c13 (patch) | |
tree | 7039a063492be66db392542dc459a19fa02d98fa /src/syntax.c | |
parent | 9514b1f9a12f6d032f7d749dfb0e947332d1c5e1 (diff) |
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)
Diffstat (limited to 'src/syntax.c')
-rw-r--r-- | src/syntax.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/syntax.c b/src/syntax.c index aee2d6a305..6900d573db 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); } /* |