Bram,
here is a patch for issue 78

Best,
Christian
-- 
Wie man sein Kind nicht nennen sollte: 
  Wita Kraft 

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.
diff --git a/runtime/doc/syntax.txt b/runtime/doc/syntax.txt
--- a/runtime/doc/syntax.txt
+++ b/runtime/doc/syntax.txt
@@ -5055,6 +5055,7 @@ private syntax setting. A possible examp
 with conventional highlighting in one window, while seeing the same source
 highlighted differently (so as to hide control sequences and indicate bold,
 italic etc regions) in another. The 'scrollbind' option is useful here.
+Note: This resets the 'spell', 'spellcapcheck' and 'spellfile' option.
 
 To set the current window to have the syntax "foo", separately from all other
 windows on the buffer: >
diff --git a/src/option.c b/src/option.c
--- a/src/option.c
+++ b/src/option.c
@@ -6699,12 +6699,16 @@ did_set_string_option(opt_idx, varp, new
 #ifdef FEAT_SPELL
     /* When 'spelllang' or 'spellfile' is set and there is a window for this
      * buffer in which 'spell' is set load the wordlists. */
-    else if (varp == &(curbuf->b_s.b_p_spl) || varp == &(curbuf->b_s.b_p_spf))
+    else if (varp == &(curbuf->b_s.b_p_spl)
+	    || varp == &(curwin->w_s->b_p_spl)
+	    || varp == &(curbuf->b_s.b_p_spf)
+	    || varp == &(curwin->w_s->b_p_spf))
     {
 	win_T	    *wp;
 	int	    l;
 
-	if (varp == &(curbuf->b_s.b_p_spf))
+	if (varp == &(curbuf->b_s.b_p_spf)
+	    || varp == &(curwin->w_s->b_p_spf))
 	{
 	    l = (int)STRLEN(curbuf->b_s.b_p_spf);
 	    if (l > 0 && (l < 4 || STRCMP(curbuf->b_s.b_p_spf + l - 4,

Raspunde prin e-mail lui