Skip to content

Commit 0f1dfa5

Browse files
brammooldouglaskayama
authored andcommitted
patch 7.4.760 Problem: Spelling mistakes are not displayed after ":syn spell". Solution: Force a redraw after ":syn spell" command. (Christian Brabandt)
1 parent ae620a6 commit 0f1dfa5

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

src/syntax.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3469,7 +3469,13 @@ syn_cmd_spell(eap, syncing)
34693469
else if (STRNICMP(arg, "default", 7) == 0 && next - arg == 7)
34703470
curwin->w_s->b_syn_spell = SYNSPL_DEFAULT;
34713471
else
3472+
{
34723473
EMSG2(_("E390: Illegal argument: %s"), arg);
3474+
return;
3475+
}
3476+
3477+
/* assume spell checking changed, force a redraw */
3478+
redraw_win_later(curwin, NOT_VALID);
34733479
}
34743480

34753481
/*

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -756,6 +756,8 @@ static char *(features[]) =
756756

757757
static int included_patches[] =
758758
{ /* Add new patch number below this line */
759+
/**/
760+
760,
759761
/**/
760762
759,
761763
/**/

0 commit comments

Comments
 (0)