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 | 82861f16c70ea572b202aa45224cf90ee6052730 (patch) | |
tree | 4a37767bde2a12b3254ecc1ee6bdf7a62f375aab | |
parent | 42961348ec2e36f274129ea231bf81f23436ec4e (diff) | |
download | vim-82861f16c70ea572b202aa45224cf90ee6052730.tar.gz |
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 aee2d6a3..6900d573 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 3958332e..92cb4a7c 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, |