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 -- [email protected] -- 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    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/202009201758.08KHw8FL3201920%40masaka.moolenaar.net.

Raspunde prin e-mail lui