# HG changeset patch # User Christian Brabandt # Date 1506204005 -7200 # Node ID 259983a729fa8c8bbe64de804d175586a5c25a5b # Parent 3ad95e60231c18fae94b2c744d738b9000d5515c patch 8.0.1142: window toolbar menu gets a tear-off item commit https://github.com/vim/vim/commit/378daf87d380b9f3c4f822786dfbfdcad9ca2db9 Author: Bram Moolenaar Date: Sat Sep 23 23:58:28 2017 +0200 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 --- 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); } diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -762,6 +762,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1142, +/**/ 1141, /**/ 1140,