Skip to content

Fix WinBar menus in GUI, and off-by-one error when adding new menus #1126

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 7, 2020

Conversation

ychin
Copy link
Member

@ychin ychin commented Dec 7, 2020

Fix WinBar menus to not create menu items in the main menu bar.

Also, fix an off-by-one error when adding new menu items to the main menu when adding the menus using priorities to insert them in the middle. This also allowed adding a menu (when using index 0) that goes before the main "MacVim" app menu which is quite wrong as the app menu should always be the first one.

Fix #918

Fix WinBar menus to not create menu items in the main menu bar.

Also, fix an off-by-one error when adding new menu items to the main
menu when adding the menus using priorities to insert them in the
middle. This also allowed adding a menu (when using index 0) that goes
before the main "MacVim" app menu which is quite wrong as the app menu
should always be the first one.

Fix macvim-dev#918
@ychin ychin added this to the snapshot-167 milestone Dec 7, 2020
@ychin ychin merged commit 056df96 into macvim-dev:master Dec 7, 2020
@ychin ychin deleted the fix-winbar-menu-off-by-one branch December 7, 2020 11:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

WinBar adds another MacVim menu in the menu bar
1 participant