forked from aniani/vim
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.
This commit is contained in:
@@ -88,7 +88,7 @@ static const char *toolbar_names[] =
|
|||||||
static int
|
static int
|
||||||
menu_is_winbar(char_u *name)
|
menu_is_winbar(char_u *name)
|
||||||
{
|
{
|
||||||
return (STRNCMP(name, "WinBar", 5) == 0);
|
return (STRNCMP(name, "WinBar", 6) == 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
@@ -1802,6 +1802,7 @@ menu_is_menubar(char_u *name)
|
|||||||
{
|
{
|
||||||
return (!menu_is_popup(name)
|
return (!menu_is_popup(name)
|
||||||
&& !menu_is_toolbar(name)
|
&& !menu_is_toolbar(name)
|
||||||
|
&& !menu_is_winbar(name)
|
||||||
&& *name != MNU_HIDDEN_CHAR);
|
&& *name != MNU_HIDDEN_CHAR);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -761,6 +761,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1142,
|
||||||
/**/
|
/**/
|
||||||
1141,
|
1141,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user