mirror of
https://github.com/vim/vim.git
synced 2025-11-16 23:24:03 -05:00
patch 7.4.828
Problem: Crash when using "syn keyword x c". (Dominique Pelle) Solution: Initialize the keyword tabble. (Raymond Ko, PR 397)
This commit is contained in:
@@ -6314,6 +6314,8 @@ ex_ownsyntax(eap)
|
|||||||
{
|
{
|
||||||
curwin->w_s = (synblock_T *)alloc(sizeof(synblock_T));
|
curwin->w_s = (synblock_T *)alloc(sizeof(synblock_T));
|
||||||
memset(curwin->w_s, 0, 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
|
#ifdef FEAT_SPELL
|
||||||
/* TODO: keep the spell checking as it was. */
|
/* TODO: keep the spell checking as it was. */
|
||||||
curwin->w_p_spell = FALSE; /* No spell checking */
|
curwin->w_p_spell = FALSE; /* No spell checking */
|
||||||
|
|||||||
@@ -741,6 +741,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
828,
|
||||||
/**/
|
/**/
|
||||||
827,
|
827,
|
||||||
/**/
|
/**/
|
||||||
|
|||||||
Reference in New Issue
Block a user