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