1
0
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:
Bram Moolenaar
2017-09-23 23:58:28 +02:00
parent 96e7a6ee45
commit 378daf87d3
2 changed files with 4 additions and 1 deletions

View File

@@ -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);
} }

View File

@@ -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,
/**/ /**/