To: vim_dev@googlegroups.com Subject: Patch 9.0.1404 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 9.0.1404 (after 9.0.1397) Problem: Compilation error with some compilers. Solution: Adjust array initialization. (John Marriott) Files: src/popupmenu.c *** ../vim-9.0.1403/src/popupmenu.c 2023-03-10 16:34:27.568958670 +0000 --- src/popupmenu.c 2023-03-15 17:04:41.945414991 +0000 *************** *** 434,443 **** int round; int n; ! int *ha = highlight_attr; ! // "word" "kind" "extra text" ! int attrsNorm[3] = { ha[HLF_PNI], ha[HLF_PNK], ha[HLF_PNX] }; ! int attrsSel[3] = { ha[HLF_PSI], ha[HLF_PSK], ha[HLF_PSX] }; if (call_update_screen) { --- 434,450 ---- int round; int n; ! int attrsNorm[3]; ! int attrsSel[3]; ! // "word" ! 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) { *** ../vim-9.0.1403/src/version.c 2023-03-12 21:20:51.441254187 +0000 --- src/version.c 2023-03-15 17:06:13.557483338 +0000 *************** *** 697,698 **** --- 697,700 ---- { /* Add new patch number below this line */ + /**/ + 1404, /**/ -- There is a fine line between courage and foolishness. Unfortunately, it's not a fence. /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// \\\ \\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///