aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/menu.c
diff options
context:
space:
mode:
authorDundar Göc <gocdundar@gmail.com>2021-10-06 10:50:53 +0200
committerDundar Göc <gocdundar@gmail.com>2021-10-06 11:50:10 +0200
commit3b3e2244dbee6adfb2efbae5d10796d1ea63820c (patch)
tree0119aff69b036d4a947a96674782de55995661e0 /src/nvim/menu.c
parent86f32dfcdd392319de6b08b4643f633eb86a3fd0 (diff)
downloadrneovim-3b3e2244dbee6adfb2efbae5d10796d1ea63820c.tar.gz
rneovim-3b3e2244dbee6adfb2efbae5d10796d1ea63820c.tar.bz2
rneovim-3b3e2244dbee6adfb2efbae5d10796d1ea63820c.zip
vim-patch:8.1.2388: using old C style comments
Problem: Using old C style comments. Solution: Use // comments where appropriate. https://github.com/vim/vim/commit/4ba37b5833de99db9e9afe8928b31c864182405c
Diffstat (limited to 'src/nvim/menu.c')
-rw-r--r--src/nvim/menu.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/menu.c b/src/nvim/menu.c
index de8503f9d0..acea557a6e 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);