From beca055b0c7bfd5abdfdcbd7f601d060ff3865e5 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Wed, 27 Oct 2010 16:18:00 +0200 Subject: [PATCH] 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) --- src/buffer.c | 6 +++--- src/version.c | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/buffer.c b/src/buffer.c index 0850baedd..a7290aebb 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 83ced4d12..f18e1497f 100644 --- a/src/version.c +++ b/src/version.c @@ -714,6 +714,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 42, /**/ 41, /**/ -- 2.50.1