Permalink
Browse files

patch 8.0.1142: window toolbar menu gets a tear-off item

Problem:    Window toolbar menu gets a tear-off item.
Solution:   Recognize the window toolbar.
  • Loading branch information...
brammool committed Sep 23, 2017
1 parent 96e7a6e commit 378daf87d380b9f3c4f822786dfbfdcad9ca2db9
Showing with 4 additions and 1 deletion.
  1. +2 −1 src/menu.c
  2. +2 −0 src/version.c
View
@@ -88,7 +88,7 @@ static const char *toolbar_names[] =
static int
menu_is_winbar(char_u *name)
{
return (STRNCMP(name, "WinBar", 5) == 0);
return (STRNCMP(name, "WinBar", 6) == 0);
}
int
@@ -1802,6 +1802,7 @@ menu_is_menubar(char_u *name)
{
return (!menu_is_popup(name)
&& !menu_is_toolbar(name)
&& !menu_is_winbar(name)
&& *name != MNU_HIDDEN_CHAR);
}
View
@@ -761,6 +761,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1142,
/**/
1141,
/**/

0 comments on commit 378daf8

Please sign in to comment.