Patch 8.0.1142

19 views
Skip to first unread message

Bram Moolenaar

unread,
Sep 23, 2017, 6:01:18 PM9/23/17
to vim...@googlegroups.com

Patch 8.0.1142
Problem: Window toolbar menu gets a tear-off item.
Solution: Recognize the window toolbar.
Files: src/menu.c


*** ../vim-8.0.1141/src/menu.c 2017-09-23 16:33:40.857195233 +0200
--- src/menu.c 2017-09-23 23:56:18.657051327 +0200
***************
*** 88,94 ****
static int
menu_is_winbar(char_u *name)
{
! return (STRNCMP(name, "WinBar", 5) == 0);
}

int
--- 88,94 ----
static int
menu_is_winbar(char_u *name)
{
! return (STRNCMP(name, "WinBar", 6) == 0);
}

int
***************
*** 1802,1807 ****
--- 1802,1808 ----
{
return (!menu_is_popup(name)
&& !menu_is_toolbar(name)
+ && !menu_is_winbar(name)
&& *name != MNU_HIDDEN_CHAR);
}

*** ../vim-8.0.1141/src/version.c 2017-09-23 19:48:24.070218157 +0200
--- src/version.c 2017-09-23 23:56:43.584901634 +0200
***************
*** 763,764 ****
--- 763,766 ----
{ /* Add new patch number below this line */
+ /**/
+ 1142,
/**/

--
hundred-and-one symptoms of being an internet addict:
186. You overstay in the office so you can have more time surfing the net.

/// 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 ///
Reply all
Reply to author
Forward
0 new messages