summaryrefslogtreecommitdiff
path: root/src/menu.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-09-23 23:58:28 +0200
committerBram Moolenaar <Bram@vim.org>2017-09-23 23:58:28 +0200
commit378daf87d380b9f3c4f822786dfbfdcad9ca2db9 (patch)
treeaff01af57c453062a3023b9e7a6a3f3398316798 /src/menu.c
parent96e7a6ee4569526c71b1e89f641526775831ac63 (diff)
downloadvim-git-378daf87d380b9f3c4f822786dfbfdcad9ca2db9.tar.gz
patch 8.0.1142: window toolbar menu gets a tear-off itemv8.0.1142
Problem: Window toolbar menu gets a tear-off item. Solution: Recognize the window toolbar.
Diffstat (limited to 'src/menu.c')
-rw-r--r--src/menu.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/menu.c b/src/menu.c
index f07be97e7..9ed7c270a 100644
--- a/src/menu.c
+++ b/src/menu.c
@@ -88,7 +88,7 @@ static const char *toolbar_names[] =
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 @@ menu_is_menubar(char_u *name)
{
return (!menu_is_popup(name)
&& !menu_is_toolbar(name)
+ && !menu_is_winbar(name)
&& *name != MNU_HIDDEN_CHAR);
}