diff options
author | Dundar Göc <gocdundar@gmail.com> | 2021-10-20 19:16:14 +0200 |
---|---|---|
committer | Dundar Göc <gocdundar@gmail.com> | 2021-10-21 12:07:14 +0200 |
commit | df27579f54066287c3ee661f8243262a0218de76 (patch) | |
tree | 5345bb3cfd99ab32dfbdc85597a2c1d71c111b4b /src/nvim/menu.c | |
parent | 1d54153ee0e08ff2df4d942b06254934c7b6af99 (diff) | |
download | rneovim-df27579f54066287c3ee661f8243262a0218de76.tar.gz rneovim-df27579f54066287c3ee661f8243262a0218de76.tar.bz2 rneovim-df27579f54066287c3ee661f8243262a0218de76.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.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/nvim/menu.c b/src/nvim/menu.c index 2250002f86..f1ae8740bb 100644 --- a/src/nvim/menu.c +++ b/src/nvim/menu.c @@ -305,8 +305,8 @@ static int add_menu_path(const char_u *const menu_path, vimmenu_T *menuarg, parent = NULL; name = path_name; while (*name) { - /* Get name of this element in the menu hierarchy, and the simplified - * name (without mnemonic and accelerator text). */ + // Get name of this element in the menu hierarchy, and the simplified + // name (without mnemonic and accelerator text). next_name = menu_name_skip(name); map_to = menutrans_lookup(name, (int)STRLEN(name)); if (map_to != NULL) { @@ -481,8 +481,8 @@ erret: xfree(path_name); xfree(dname); - /* Delete any empty submenu we added before discovering the error. Repeat - * for higher levels. */ + // Delete any empty submenu we added before discovering the error. Repeat + // for higher levels. while (parent != NULL && parent->children == NULL) { if (parent->parent == NULL) { menup = root_menu_ptr; @@ -650,8 +650,8 @@ static void free_menu(vimmenu_T **menup) menu = *menup; - /* Don't change *menup until after calling gui_mch_destroy_menu(). The - * MacOS code needs the original structure to properly delete the menu. */ + // Don't change *menup until after calling gui_mch_destroy_menu(). The + // MacOS code needs the original structure to properly delete the menu. *menup = menu->next; xfree(menu->name); xfree(menu->dname); @@ -1122,8 +1122,8 @@ char_u *get_menu_names(expand_T *xp, int idx) should_advance = true; } } - /* hack on menu separators: use a 'magic' char for the separator - * so that '.' in names gets escaped properly */ + // hack on menu separators: use a 'magic' char for the separator + // so that '.' in names gets escaped properly STRCAT(tbuffer, "\001"); str = tbuffer; } else { @@ -1404,10 +1404,10 @@ static void execute_menu(const exarg_T *eap, vimmenu_T *menu) mode = "Visual"; idx = MENU_INDEX_VISUAL; - /* GEDDES: This is not perfect - but it is a - * quick way of detecting whether we are doing this from a - * selection - see if the range matches up with the visual - * select start and end. */ + // GEDDES: This is not perfect - but it is a + // quick way of detecting whether we are doing this from a + // selection - see if the range matches up with the visual + // select start and end. if ((curbuf->b_visual.vi_start.lnum == eap->line1) && (curbuf->b_visual.vi_end.lnum) == eap->line2) { // Set it up for visual mode - equivalent to gv. @@ -1434,8 +1434,8 @@ static void execute_menu(const exarg_T *eap, vimmenu_T *menu) check_cursor(); - /* Adjust the cursor to make sure it is in the correct pos - * for exclusive mode */ + // Adjust the cursor to make sure it is in the correct pos + // for exclusive mode if (*p_sel == 'e' && gchar_cursor() != NUL) { curwin->w_cursor.col++; } |