vim-patch:7.4.760

Problem:    Spelling mistakes are not displayed after ":syn spell".
Solution:   Force a redraw after ":syn spell" command. (Christian Brabandt)

5081d20247
This commit is contained in:
Jurica Bradaric 2016-01-30 18:55:04 +01:00 committed by Justin M. Keyes
parent b0cfb6905a
commit 0429b7714f
2 changed files with 10 additions and 5 deletions

View File

@ -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);
}
/*

View File

@ -528,7 +528,7 @@ static int included_patches[] = {
// 763 NA
// 762 NA
// 761 NA
// 760,
760,
// 759 NA
758,
// 757 NA