Mercurial > vim
changeset 12527:259983a729fa v8.0.1142
patch 8.0.1142: window toolbar menu gets a tear-off item
commit https://github.com/vim/vim/commit/378daf87d380b9f3c4f822786dfbfdcad9ca2db9
Author: Bram Moolenaar <Bram@vim.org>
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.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 24 Sep 2017 00:00:05 +0200 |
parents | 3ad95e60231c |
children | 608ee63b6014 |
files | src/menu.c src/version.c |
diffstat | 2 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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); }