1
0
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:
Bram Moolenaar
2023-03-15 17:08:51 +00:00
parent e764d1b421
commit e638acc927
2 changed files with 13 additions and 4 deletions

View File

@@ -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)
{ {

View File

@@ -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,
/**/ /**/