Problem: No spell highlighting when re-using an empty buffer.
Solution: Clear the spell checking info only when clearing the options for a
buffer. (James Vega)
{
clear_wininfo(buf); /* including window-local options */
free_buf_options(buf, TRUE);
+#ifdef FEAT_SPELL
+ ga_clear(&buf->b_s.b_langp);
+#endif
}
#ifdef FEAT_EVAL
vars_clear(&buf->b_vars.dv_hashtab); /* free all internal variables */
vim_free(buf->b_start_fenc);
buf->b_start_fenc = NULL;
#endif
-#ifdef FEAT_SPELL
- ga_clear(&buf->b_s.b_langp);
-#endif
}
/*
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 42,
/**/
41,
/**/