diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2021-02-07 18:28:34 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-07 18:28:34 -0500 |
commit | 02a3c417945e7b7fc781906a78acbf88bd44c971 (patch) | |
tree | 16f255fcf66a50ceea661e08cbea7ce965c46e7c /src/nvim/menu.c | |
parent | a7d9df996dc1c353574845563216dc0372dd8b77 (diff) | |
parent | d34846af7455b8411476700920cdb64f121bae69 (diff) | |
download | rneovim-02a3c417945e7b7fc781906a78acbf88bd44c971.tar.gz rneovim-02a3c417945e7b7fc781906a78acbf88bd44c971.tar.bz2 rneovim-02a3c417945e7b7fc781906a78acbf88bd44c971.zip |
Merge pull request #13898 from janlazo/set_string_option_direct
Refactor option,var functions to use char for param type
Diffstat (limited to 'src/nvim/menu.c')
-rw-r--r-- | src/nvim/menu.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/nvim/menu.c b/src/nvim/menu.c index 7094d3be90..ac3b7768e6 100644 --- a/src/nvim/menu.c +++ b/src/nvim/menu.c @@ -81,7 +81,7 @@ ex_menu(exarg_T *eap) // kFalse for "menu disable vimmenu_T menuarg; - modes = get_menu_cmd_modes(eap->cmd, eap->forceit, &noremap, &unmenu); + modes = get_menu_cmd_modes((char *)eap->cmd, eap->forceit, &noremap, &unmenu); arg = eap->arg; for (;; ) { @@ -912,7 +912,9 @@ static int expand_emenu; /* TRUE for ":emenu" command */ /* * Work out what to complete when doing command line completion of menu names. */ -char_u *set_context_in_menu_cmd(expand_T *xp, char_u *cmd, char_u *arg, int forceit) +char_u *set_context_in_menu_cmd(expand_T *xp, const char *cmd, char_u *arg, + bool forceit) + FUNC_ATTR_NONNULL_ALL { char_u *after_dot; char_u *p; @@ -1178,7 +1180,7 @@ static bool menu_namecmp(const char_u *const name, const char_u *const mname) /// to whether the command is an "unmenu" command. int get_menu_cmd_modes( - const char_u * cmd, + const char *cmd, bool forceit, int *noremap, int *unmenu |