aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/menu.c
diff options
context:
space:
mode:
authordundargoc <gocdundar@gmail.com>2023-12-28 13:42:24 +0100
committerdundargoc <33953936+dundargoc@users.noreply.github.com>2023-12-30 12:45:38 +0100
commitc89292fcb7f2ebf06efb7c1d00c28f34c6f68fec (patch)
treeb1257a572495337ca936c47839bb08aa45528c84 /src/nvim/menu.c
parentd634cd5b0bc3ac6bdf285432f74a1c10f12b6031 (diff)
downloadrneovim-c89292fcb7f2ebf06efb7c1d00c28f34c6f68fec.tar.gz
rneovim-c89292fcb7f2ebf06efb7c1d00c28f34c6f68fec.tar.bz2
rneovim-c89292fcb7f2ebf06efb7c1d00c28f34c6f68fec.zip
refactor: follow style guide
Diffstat (limited to 'src/nvim/menu.c')
-rw-r--r--src/nvim/menu.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/menu.c b/src/nvim/menu.c
index c4486222a5..b61c28a4df 100644
--- a/src/nvim/menu.c
+++ b/src/nvim/menu.c
@@ -69,7 +69,7 @@ void ex_menu(exarg_T *eap)
char *map_to; // command mapped to the menu entry
int noremap;
bool silent = false;
- int unmenu;
+ bool unmenu;
char *map_buf;
char *p;
int i;
@@ -868,7 +868,7 @@ char *set_context_in_menu_cmd(expand_T *xp, const char *cmd, char *arg, bool for
char *after_dot;
char *p;
char *path_name = NULL;
- int unmenu;
+ bool unmenu;
vimmenu_T *menu;
xp->xp_context = EXPAND_UNSUCCESSFUL;
@@ -1132,7 +1132,7 @@ static bool menu_namecmp(const char *const name, const char *const mname)
/// to whether the command is a "nore" command.
/// @param[out] unmenu If not NULL, the flag it points to is set according
/// to whether the command is an "unmenu" command.
-int get_menu_cmd_modes(const char *cmd, bool forceit, int *noremap, int *unmenu)
+int get_menu_cmd_modes(const char *cmd, bool forceit, int *noremap, bool *unmenu)
{
int modes;