0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

updated for version 7.3.042

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)
This commit is contained in:
Bram Moolenaar 2010-10-27 16:18:00 +02:00
parent 22df3f90fc
commit beca055b0c
2 changed files with 5 additions and 3 deletions

View File

@ -639,6 +639,9 @@ free_buffer_stuff(buf, free_options)
{ {
clear_wininfo(buf); /* including window-local options */ clear_wininfo(buf); /* including window-local options */
free_buf_options(buf, TRUE); free_buf_options(buf, TRUE);
#ifdef FEAT_SPELL
ga_clear(&buf->b_s.b_langp);
#endif
} }
#ifdef FEAT_EVAL #ifdef FEAT_EVAL
vars_clear(&buf->b_vars.dv_hashtab); /* free all internal variables */ vars_clear(&buf->b_vars.dv_hashtab); /* free all internal variables */
@ -661,9 +664,6 @@ free_buffer_stuff(buf, free_options)
vim_free(buf->b_start_fenc); vim_free(buf->b_start_fenc);
buf->b_start_fenc = NULL; buf->b_start_fenc = NULL;
#endif #endif
#ifdef FEAT_SPELL
ga_clear(&buf->b_s.b_langp);
#endif
} }
/* /*

View File

@ -714,6 +714,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
42,
/**/ /**/
41, 41,
/**/ /**/