diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2016-02-09 01:41:04 -0500 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2016-02-09 01:41:04 -0500 |
commit | 17ae27190d4589b2a35f44bc6c8b552f4bf06d4e (patch) | |
tree | 63744d41c9c2e3b0fe0eafd55e96d26896bbba82 /src/nvim/syntax.c | |
parent | 31aa060bca0084d19eac382408727c5f3b190af3 (diff) | |
parent | 18be6e0b30e64b45d3bcec944ac19a32410da0ee (diff) | |
download | rneovim-17ae27190d4589b2a35f44bc6c8b552f4bf06d4e.tar.gz rneovim-17ae27190d4589b2a35f44bc6c8b552f4bf06d4e.tar.bz2 rneovim-17ae27190d4589b2a35f44bc6c8b552f4bf06d4e.zip |
Merge #4136 vim-patch:7.4.{755,758,760}
Diffstat (limited to 'src/nvim/syntax.c')
-rw-r--r-- | src/nvim/syntax.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/nvim/syntax.c b/src/nvim/syntax.c index 24422c71fb..b46131b972 100644 --- a/src/nvim/syntax.c +++ b/src/nvim/syntax.c @@ -3004,14 +3004,19 @@ static void syn_cmd_spell(exarg_T *eap, int syncing) return; next = skiptowhite(arg); - if (STRNICMP(arg, "toplevel", 8) == 0 && next - arg == 8) + if (STRNICMP(arg, "toplevel", 8) == 0 && next - arg == 8) { curwin->w_s->b_syn_spell = SYNSPL_TOP; - else if (STRNICMP(arg, "notoplevel", 10) == 0 && next - arg == 10) + } else if (STRNICMP(arg, "notoplevel", 10) == 0 && next - arg == 10) { curwin->w_s->b_syn_spell = SYNSPL_NOTOP; - else if (STRNICMP(arg, "default", 7) == 0 && next - arg == 7) + } else if (STRNICMP(arg, "default", 7) == 0 && next - arg == 7) { curwin->w_s->b_syn_spell = SYNSPL_DEFAULT; - else + } else { EMSG2(_("E390: Illegal argument: %s"), arg); + return; + } + + // assume spell checking changed, force a redraw + redraw_win_later(curwin, NOT_VALID); } /* |