forked from aniani/vim
patch 9.0.1404: compilation error with some compilers
Problem: Compilation error with some compilers. Solution: Adjust array initialization. (John Marriott)
This commit is contained in:
@@ -434,10 +434,17 @@ pum_redraw(void)
|
|||||||
int round;
|
int round;
|
||||||
int n;
|
int n;
|
||||||
|
|
||||||
int *ha = highlight_attr;
|
int attrsNorm[3];
|
||||||
// "word" "kind" "extra text"
|
int attrsSel[3];
|
||||||
int attrsNorm[3] = { ha[HLF_PNI], ha[HLF_PNK], ha[HLF_PNX] };
|
// "word"
|
||||||
int attrsSel[3] = { ha[HLF_PSI], ha[HLF_PSK], ha[HLF_PSX] };
|
attrsNorm[0] = highlight_attr[HLF_PNI];
|
||||||
|
attrsSel[0] = highlight_attr[HLF_PSI];
|
||||||
|
// "kind"
|
||||||
|
attrsNorm[1] = highlight_attr[HLF_PNK];
|
||||||
|
attrsSel[1] = highlight_attr[HLF_PSK];
|
||||||
|
// "extra text"
|
||||||
|
attrsNorm[2] = highlight_attr[HLF_PNX];
|
||||||
|
attrsSel[2] = highlight_attr[HLF_PSX];
|
||||||
|
|
||||||
if (call_update_screen)
|
if (call_update_screen)
|
||||||
{
|
{
|
||||||
|
@@ -695,6 +695,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 */
|
||||||
|
/**/
|
||||||
|
1404,
|
||||||
/**/
|
/**/
|
||||||
1403,
|
1403,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user