Patch 8.2.1713
Problem: Motif GUI: crash when setting menu colors. (Andrzej Bylicki)
Solution: Add {} to make "n" incremented correctly. (closes #6989,
closes #5948)
Files: src/gui_motif.c
*** ../vim-8.2.1712/src/gui_motif.c 2020-07-17 20:43:37.288617050 +0200
--- src/gui_motif.c 2020-09-20 19:53:19.493841176 +0200
***************
*** 916,924 ****
--- 916,928 ----
# endif
{
if (gui.menu_bg_pixel != INVALCOLOR)
+ {
XtSetArg(arg[0], XmNbackground, gui.menu_bg_pixel); n++;
+ }
if (gui.menu_fg_pixel != INVALCOLOR)
+ {
XtSetArg(arg[1], XmNforeground, gui.menu_fg_pixel); n++;
+ }
menu->submenu_id = XmCreatePopupMenu(textArea, "contextMenu",
arg, n);
menu->id = (Widget)0;
*** ../vim-8.2.1712/src/version.c 2020-09-19 18:19:15.667278827 +0200
--- src/version.c 2020-09-20 19:56:39.680874952 +0200
***************
*** 752,753 ****
--- 752,755 ----
{ /* Add new patch number below this line */
+ /**/
+ 1713,
/**/
--
Why I like vim:
> I like VIM because, when I ask a question in this newsgroup, I get a
> one-line answer. With xemacs, I get a 1Kb lisp script with bugs in it ;-)
/// Bram Moolenaar -- Br...@Moolenaar.net --
http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features --
http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language --
http://www.Zimbu.org ///
\\\ help me help AIDS victims --
http://ICCF-Holland.org ///