diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2021-10-17 10:21:40 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-17 10:21:40 -0400 |
commit | 77e6ecf85aa756ebca4548e4cfbc906bf8fff568 (patch) | |
tree | cbbaf43aeb2f221b9c0431c94e73ef38e9c88a9f /src/nvim/menu.c | |
parent | d2d30dfabdaacfd53b081354248402c797576482 (diff) | |
parent | b98383a2501007b979e491a13fcb1387f1d9101a (diff) | |
download | rneovim-77e6ecf85aa756ebca4548e4cfbc906bf8fff568.tar.gz rneovim-77e6ecf85aa756ebca4548e4cfbc906bf8fff568.tar.bz2 rneovim-77e6ecf85aa756ebca4548e4cfbc906bf8fff568.zip |
Merge pull request #15930 from dundargoc/vim-patch/old-style-c-comments
vim-patch:8.1.2396,8.1.2395,8.1.2394,8.1.2392,8.1.2368,8.1.2388,8.1.2379
Diffstat (limited to 'src/nvim/menu.c')
-rw-r--r-- | src/nvim/menu.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/menu.c b/src/nvim/menu.c index 85e062009a..d89f58163f 100644 --- a/src/nvim/menu.c +++ b/src/nvim/menu.c @@ -343,8 +343,8 @@ static int add_menu_path(const char_u *const menu_path, vimmenu_T *menuarg, } menup = &menu->next; - /* Count menus, to find where this one needs to be inserted. - * Ignore menus that are not in the menubar (PopUp and Toolbar) */ + // Count menus, to find where this one needs to be inserted. + // Ignore menus that are not in the menubar (PopUp and Toolbar) if (parent != NULL || menu_is_menubar(menu->name)) { if (menu->priority <= pri_tab[pri_idx]) { lower_pri = menup; @@ -596,8 +596,8 @@ static int remove_menu(vimmenu_T **menup, char_u *name, int modes, bool silent) break; } - /* Remove the menu item for the given mode[s]. If the menu item - * is no longer valid in ANY mode, delete it */ + // Remove the menu item for the given mode[s]. If the menu item + // is no longer valid in ANY mode, delete it menu->modes &= ~modes; if (modes & MENU_TIP_MODE) { free_menu_string(menu, MENU_INDEX_TIP); |