]> granicus.if.org Git - vim/commitdiff
updated for version 7.1-077 v7.1.077
authorBram Moolenaar <Bram@vim.org>
Tue, 14 Aug 2007 21:07:36 +0000 (21:07 +0000)
committerBram Moolenaar <Bram@vim.org>
Tue, 14 Aug 2007 21:07:36 +0000 (21:07 +0000)
src/syntax.c
src/version.c

index c47a6026dc02e89f1f33a7eee806e9432af2f523..2cef9782c8e882bfc342407ffe8659ce8dc9abc9 100644 (file)
@@ -1727,6 +1727,13 @@ get_syntax_attr(col, can_spell)
 {
     int            attr = 0;
 
+    if (can_spell != NULL)
+       /* Default: Only do spelling when there is no @Spell cluster or when
+        * ":syn spell toplevel" was used. */
+       *can_spell = syn_buf->b_syn_spell == SYNSPL_DEFAULT
+                   ? (syn_buf->b_spell_cluster_id == 0)
+                   : (syn_buf->b_syn_spell == SYNSPL_TOP);
+
     /* check for out of memory situation */
     if (syn_buf->b_sst_array == NULL)
        return 0;
index 7ef033760ef6b35d5bf1dea3b30ae316203c59ab..ad8f6b8b01486dd03d43959d076ba4ecb22ad90e 100644 (file)
@@ -666,6 +666,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    77,
 /**/
     76,
 /**/