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