diff options
author | Bram Moolenaar <Bram@vim.org> | 2010-10-27 16:18:00 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2010-10-27 16:18:00 +0200 |
commit | beca055b0c7bfd5abdfdcbd7f601d060ff3865e5 (patch) | |
tree | 28700097d38f268d9cca4821df6fef5b01f4e53b /src | |
parent | 22df3f90fcd910ae99b9c08ad6363a2706f8d999 (diff) |
updated for version 7.3.042v7.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)
Diffstat (limited to 'src')
-rw-r--r-- | src/buffer.c | 6 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 5 insertions, 3 deletions
diff --git a/src/buffer.c b/src/buffer.c index 0850baedd4..a7290aebb1 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -639,6 +639,9 @@ free_buffer_stuff(buf, free_options) { 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 */ @@ -661,9 +664,6 @@ free_buffer_stuff(buf, free_options) vim_free(buf->b_start_fenc); buf->b_start_fenc = NULL; #endif -#ifdef FEAT_SPELL - ga_clear(&buf->b_s.b_langp); -#endif } /* diff --git a/src/version.c b/src/version.c index 83ced4d12a..f18e1497fa 100644 --- a/src/version.c +++ b/src/version.c @@ -715,6 +715,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 42, +/**/ 41, /**/ 40, |