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 | |
parent | 9514b1f9a12f6d032f7d749dfb0e947332d1c5e1 (diff) | |
download | vim-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.c | 6 | ||||
-rw-r--r-- | src/version.c | 2 |
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, |