]> granicus.if.org Git - vim/commitdiff
updated for version 7.3.042 v7.3.042
authorBram Moolenaar <Bram@vim.org>
Wed, 27 Oct 2010 14:18:00 +0000 (16:18 +0200)
committerBram Moolenaar <Bram@vim.org>
Wed, 27 Oct 2010 14:18:00 +0000 (16:18 +0200)
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
src/version.c

index 0850baedd47421a053ce4438a3dde62c12ecdfde..a7290aebb1d1586ce78025db795c52232f7b7816 100644 (file)
@@ -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
 }
 
 /*
index 83ced4d12ab70dc88809c567d5a411d156159003..f18e1497fa32e43bf94b0eb6afb8872dc3f29220 100644 (file)
@@ -714,6 +714,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    42,
 /**/
     41,
 /**/