Bram,
considering this text:

foo bar baz

syntax on
:set syntax=c spell spelllang=en
(Note: no spell highlighting)
:syn spell toplevel
(Now there should be spelling mistakes highlighted. This happens only 
after forcing a manual redraw, so do <C-L>)

So one would need an explicit redraw when using :syn spell command:

diff --git a/src/syntax.c b/src/syntax.c
--- a/src/syntax.c
+++ b/src/syntax.c
@@ -3470,6 +3470,8 @@ syn_cmd_spell(eap, syncing)
        curwin->w_s->b_syn_spell = SYNSPL_DEFAULT;
     else
        EMSG2(_("E390: Illegal argument: %s"), arg);
+    /* force a redraw */
+    redraw_win_later(curwin, NOT_VALID);
 }



Best,
Christian
-- 
Wie man sein Kind nicht nennen sollte: 
  S. N. Marke 

-- 
-- 
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.

Raspunde prin e-mail lui