]> granicus.if.org Git - vim/commitdiff
patch 7.4.828 v7.4.828
authorBram Moolenaar <Bram@vim.org>
Tue, 25 Aug 2015 09:58:36 +0000 (11:58 +0200)
committerBram Moolenaar <Bram@vim.org>
Tue, 25 Aug 2015 09:58:36 +0000 (11:58 +0200)
Problem:    Crash when using "syn keyword x c". (Dominique Pelle)
Solution:   Initialize the keyword tabble. (Raymond Ko, PR 397)

src/syntax.c
src/version.c

index c28a24c5ceef3966c8d4881911cb8af3dd924cc6..a16715a9577b3403a24d29692ca69708c3b5e9d7 100644 (file)
@@ -6314,6 +6314,8 @@ ex_ownsyntax(eap)
     {
        curwin->w_s = (synblock_T *)alloc(sizeof(synblock_T));
        memset(curwin->w_s, 0, sizeof(synblock_T));
+       hash_init(&curwin->w_s->b_keywtab);
+       hash_init(&curwin->w_s->b_keywtab_ic);
 #ifdef FEAT_SPELL
        /* TODO: keep the spell checking as it was. */
        curwin->w_p_spell = FALSE;      /* No spell checking */
index e4466041a2e006ff8bbf56925e4c50c61c0471cd..dd3449054c23ff6194f8cb1ac8efb762ed0e380b 100644 (file)
@@ -741,6 +741,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    828,
 /**/
     827,
 /**/