Skip to content

Commit 7795bfe

Browse files
committed
patch 8.2.1713: Motif GUI: crash when setting menu colors
Problem: Motif GUI: crash when setting menu colors. (Andrzej Bylicki) Solution: Add {} to make "n" incremented correctly. (closes #6989, closes #5948)
1 parent 1d59aa1 commit 7795bfe

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

src/gui_motif.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -916,9 +916,13 @@ gui_mch_add_menu(vimmenu_T *menu, int idx)
916916
# endif
917917
{
918918
if (gui.menu_bg_pixel != INVALCOLOR)
919+
{
919920
XtSetArg(arg[0], XmNbackground, gui.menu_bg_pixel); n++;
921+
}
920922
if (gui.menu_fg_pixel != INVALCOLOR)
923+
{
921924
XtSetArg(arg[1], XmNforeground, gui.menu_fg_pixel); n++;
925+
}
922926
menu->submenu_id = XmCreatePopupMenu(textArea, "contextMenu",
923927
arg, n);
924928
menu->id = (Widget)0;

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -750,6 +750,8 @@ static char *(features[]) =
750750

751751
static int included_patches[] =
752752
{ /* Add new patch number below this line */
753+
/**/
754+
1713,
753755
/**/
754756
1712,
755757
/**/

0 commit comments

Comments
 (0)