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