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