a916aca
To: vim_dev@googlegroups.com
a916aca
Subject: Patch 7.3.042
a916aca
Fcc: outbox
a916aca
From: Bram Moolenaar <Bram@moolenaar.net>
a916aca
Mime-Version: 1.0
a916aca
Content-Type: text/plain; charset=UTF-8
a916aca
Content-Transfer-Encoding: 8bit
a916aca
------------
a916aca
a916aca
Patch 7.3.042
a916aca
Problem:    No spell highlighting when re-using an empty buffer.
a916aca
Solution:   Clear the spell checking info only when clearing the options for a
a916aca
	    buffer. (James Vega)
a916aca
Files:	    src/buffer.c
a916aca
a916aca
a916aca
*** ../vim-7.3.041/src/buffer.c	2010-09-21 16:56:29.000000000 +0200
a916aca
--- src/buffer.c	2010-10-27 16:09:26.000000000 +0200
a916aca
***************
a916aca
*** 639,644 ****
a916aca
--- 639,647 ----
a916aca
      {
a916aca
  	clear_wininfo(buf);		/* including window-local options */
a916aca
  	free_buf_options(buf, TRUE);
a916aca
+ #ifdef FEAT_SPELL
a916aca
+ 	ga_clear(&buf->b_s.b_langp);
a916aca
+ #endif
a916aca
      }
a916aca
  #ifdef FEAT_EVAL
a916aca
      vars_clear(&buf->b_vars.dv_hashtab); /* free all internal variables */
a916aca
***************
a916aca
*** 661,669 ****
a916aca
      vim_free(buf->b_start_fenc);
a916aca
      buf->b_start_fenc = NULL;
a916aca
  #endif
a916aca
- #ifdef FEAT_SPELL
a916aca
-     ga_clear(&buf->b_s.b_langp);
a916aca
- #endif
a916aca
  }
a916aca
  
a916aca
  /*
a916aca
--- 664,669 ----
a916aca
*** ../vim-7.3.041/src/version.c	2010-10-27 16:01:17.000000000 +0200
a916aca
--- src/version.c	2010-10-27 16:10:33.000000000 +0200
a916aca
***************
a916aca
*** 716,717 ****
a916aca
--- 716,719 ----
a916aca
  {   /* Add new patch number below this line */
a916aca
+ /**/
a916aca
+     42,
a916aca
  /**/
a916aca
a916aca
-- 
a916aca
BLACK KNIGHT:  I move for no man.
a916aca
ARTHUR:        So be it!
a916aca
    [hah] [parry thrust]
a916aca
    [ARTHUR chops the BLACK KNIGHT's left arm off]
a916aca
ARTHUR:        Now stand aside, worthy adversary.
a916aca
BLACK KNIGHT:  'Tis but a scratch.
a916aca
                                  The Quest for the Holy Grail (Monty Python)
a916aca
a916aca
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
a916aca
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
a916aca
\\\        download, build and distribute -- http://www.A-A-P.org        ///
a916aca
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///