Skip to content

Commit 378daf8

Browse files
committed
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.
1 parent 96e7a6e commit 378daf8

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/menu.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ static const char *toolbar_names[] =
8888
static int
8989
menu_is_winbar(char_u *name)
9090
{
91-
return (STRNCMP(name, "WinBar", 5) == 0);
91+
return (STRNCMP(name, "WinBar", 6) == 0);
9292
}
9393

9494
int
@@ -1802,6 +1802,7 @@ menu_is_menubar(char_u *name)
18021802
{
18031803
return (!menu_is_popup(name)
18041804
&& !menu_is_toolbar(name)
1805+
&& !menu_is_winbar(name)
18051806
&& *name != MNU_HIDDEN_CHAR);
18061807
}
18071808

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -761,6 +761,8 @@ static char *(features[]) =
761761

762762
static int included_patches[] =
763763
{ /* Add new patch number below this line */
764+
/**/
765+
1142,
764766
/**/
765767
1141,
766768
/**/

0 commit comments

Comments
 (0)