comparison src/menu.c @ 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 718787498836
children 1a450ce6980c
comparison
equal deleted inserted replaced
12526:3ad95e60231c 12527:259983a729fa
86 * Return TRUE if "name" is a window toolbar menu name. 86 * Return TRUE if "name" is a window toolbar menu name.
87 */ 87 */
88 static int 88 static int
89 menu_is_winbar(char_u *name) 89 menu_is_winbar(char_u *name)
90 { 90 {
91 return (STRNCMP(name, "WinBar", 5) == 0); 91 return (STRNCMP(name, "WinBar", 6) == 0);
92 } 92 }
93 93
94 int 94 int
95 winbar_height(win_T *wp) 95 winbar_height(win_T *wp)
96 { 96 {
1800 int 1800 int
1801 menu_is_menubar(char_u *name) 1801 menu_is_menubar(char_u *name)
1802 { 1802 {
1803 return (!menu_is_popup(name) 1803 return (!menu_is_popup(name)
1804 && !menu_is_toolbar(name) 1804 && !menu_is_toolbar(name)
1805 && !menu_is_winbar(name)
1805 && *name != MNU_HIDDEN_CHAR); 1806 && *name != MNU_HIDDEN_CHAR);
1806 } 1807 }
1807 1808
1808 /* 1809 /*
1809 * Return TRUE if "name" is a popup menu name. 1810 * Return TRUE if "name" is a popup menu name.