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.
diff --git a/src/menu.c b/src/menu.c
index f07be97..9ed7c27 100644
--- a/src/menu.c
+++ b/src/menu.c
@@ -88,7 +88,7 @@
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 @@
{
return (!menu_is_popup(name)
&& !menu_is_toolbar(name)
+ && !menu_is_winbar(name)
&& *name != MNU_HIDDEN_CHAR);
}
diff --git a/src/version.c b/src/version.c
index 6416490..14edfe4 100644
--- a/src/version.c
+++ b/src/version.c
@@ -762,6 +762,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 1142,
+/**/
1141,
/**/
1140,