jkunstle / rpms / vim

Forked from rpms/vim 3 years ago
Clone

Blame SOURCES/7.4.524

3ef2ca
To: vim_dev@googlegroups.com
3ef2ca
Subject: Patch 7.4.524
3ef2ca
Fcc: outbox
3ef2ca
From: Bram Moolenaar <Bram@moolenaar.net>
3ef2ca
Mime-Version: 1.0
3ef2ca
Content-Type: text/plain; charset=UTF-8
3ef2ca
Content-Transfer-Encoding: 8bit
3ef2ca
------------
3ef2ca
3ef2ca
Patch 7.4.524
3ef2ca
Problem:    When using ":ownsyntax" spell checking is messed up. (Issue 78)
3ef2ca
Solution:   Use the window-local option values. (Christian Brabandt)
3ef2ca
Files:	    src/option.c, src/syntax.c
3ef2ca
3ef2ca
3ef2ca
*** ../vim-7.4.523/src/option.c	2014-11-05 17:44:47.676471691 +0100
3ef2ca
--- src/option.c	2014-11-19 19:29:49.351843116 +0100
3ef2ca
***************
3ef2ca
*** 6706,6720 ****
3ef2ca
  #ifdef FEAT_SPELL
3ef2ca
      /* When 'spelllang' or 'spellfile' is set and there is a window for this
3ef2ca
       * buffer in which 'spell' is set load the wordlists. */
3ef2ca
!     else if (varp == &(curbuf->b_s.b_p_spl) || varp == &(curbuf->b_s.b_p_spf))
3ef2ca
      {
3ef2ca
  	win_T	    *wp;
3ef2ca
  	int	    l;
3ef2ca
  
3ef2ca
! 	if (varp == &(curbuf->b_s.b_p_spf))
3ef2ca
  	{
3ef2ca
! 	    l = (int)STRLEN(curbuf->b_s.b_p_spf);
3ef2ca
! 	    if (l > 0 && (l < 4 || STRCMP(curbuf->b_s.b_p_spf + l - 4,
3ef2ca
  								".add") != 0))
3ef2ca
  		errmsg = e_invarg;
3ef2ca
  	}
3ef2ca
--- 6706,6721 ----
3ef2ca
  #ifdef FEAT_SPELL
3ef2ca
      /* When 'spelllang' or 'spellfile' is set and there is a window for this
3ef2ca
       * buffer in which 'spell' is set load the wordlists. */
3ef2ca
!     else if (varp == &(curwin->w_s->b_p_spl)
3ef2ca
! 	    || varp == &(curwin->w_s->b_p_spf))
3ef2ca
      {
3ef2ca
  	win_T	    *wp;
3ef2ca
  	int	    l;
3ef2ca
  
3ef2ca
! 	if (varp == &(curwin->w_s->b_p_spf))
3ef2ca
  	{
3ef2ca
! 	    l = (int)STRLEN(curwin->w_s->b_p_spf);
3ef2ca
! 	    if (l > 0 && (l < 4 || STRCMP(curwin->w_s->b_p_spf + l - 4,
3ef2ca
  								".add") != 0))
3ef2ca
  		errmsg = e_invarg;
3ef2ca
  	}
3ef2ca
*** ../vim-7.4.523/src/syntax.c	2014-11-19 16:38:01.512679964 +0100
3ef2ca
--- src/syntax.c	2014-11-19 19:24:56.431160659 +0100
3ef2ca
***************
3ef2ca
*** 6304,6314 ****
3ef2ca
  	curwin->w_s = (synblock_T *)alloc(sizeof(synblock_T));
3ef2ca
  	memset(curwin->w_s, 0, sizeof(synblock_T));
3ef2ca
  #ifdef FEAT_SPELL
3ef2ca
  	curwin->w_p_spell = FALSE;	/* No spell checking */
3ef2ca
  	clear_string_option(&curwin->w_s->b_p_spc);
3ef2ca
  	clear_string_option(&curwin->w_s->b_p_spf);
3ef2ca
- 	vim_regfree(curwin->w_s->b_cap_prog);
3ef2ca
- 	curwin->w_s->b_cap_prog = NULL;
3ef2ca
  	clear_string_option(&curwin->w_s->b_p_spl);
3ef2ca
  #endif
3ef2ca
      }
3ef2ca
--- 6304,6313 ----
3ef2ca
  	curwin->w_s = (synblock_T *)alloc(sizeof(synblock_T));
3ef2ca
  	memset(curwin->w_s, 0, sizeof(synblock_T));
3ef2ca
  #ifdef FEAT_SPELL
3ef2ca
+ 	/* TODO: keep the spell checking as it was. */
3ef2ca
  	curwin->w_p_spell = FALSE;	/* No spell checking */
3ef2ca
  	clear_string_option(&curwin->w_s->b_p_spc);
3ef2ca
  	clear_string_option(&curwin->w_s->b_p_spf);
3ef2ca
  	clear_string_option(&curwin->w_s->b_p_spl);
3ef2ca
  #endif
3ef2ca
      }
3ef2ca
*** ../vim-7.4.523/src/version.c	2014-11-19 18:48:41.515814987 +0100
3ef2ca
--- src/version.c	2014-11-19 19:26:00.158438943 +0100
3ef2ca
***************
3ef2ca
*** 743,744 ****
3ef2ca
--- 743,746 ----
3ef2ca
  {   /* Add new patch number below this line */
3ef2ca
+ /**/
3ef2ca
+     524,
3ef2ca
  /**/
3ef2ca
3ef2ca
-- 
3ef2ca
A special law prohibits unmarried women from parachuting on Sunday or she
3ef2ca
shall risk arrest, fine, and/or jailing.
3ef2ca
		[real standing law in Florida, United States of America]
3ef2ca
3ef2ca
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
3ef2ca
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
3ef2ca
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
3ef2ca
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///