mirror of
				https://github.com/vim/vim.git
				synced 2025-10-31 09:57:14 -04:00 
			
		
		
		
	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.
This commit is contained in:
		| @@ -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); | ||||
| } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user