aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/menu.c
diff options
context:
space:
mode:
authorDundar Goc <gocdundar@gmail.com>2022-05-08 14:43:16 +0200
committerDundar Goc <gocdundar@gmail.com>2022-05-11 23:19:57 +0200
commit85aae12a6dea48621ea2d24a946b3e7b86f9014d (patch)
treed9d45a2bdde3b462f58d98b88694bad0183c2b16 /src/nvim/menu.c
parent5359be78935dc639c481d74f010fe133dd40290c (diff)
downloadrneovim-85aae12a6dea48621ea2d24a946b3e7b86f9014d.tar.gz
rneovim-85aae12a6dea48621ea2d24a946b3e7b86f9014d.tar.bz2
rneovim-85aae12a6dea48621ea2d24a946b3e7b86f9014d.zip
refactor: replace char_u variables and functions with char
Work on https://github.com/neovim/neovim/issues/459
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 887a24d28b..14084df4d4 100644
--- a/src/nvim/menu.c
+++ b/src/nvim/menu.c
@@ -1034,7 +1034,7 @@ char *set_context_in_menu_cmd(expand_T *xp, const char *cmd, char *arg, bool for
* Function given to ExpandGeneric() to obtain the list of (sub)menus (not
* entries).
*/
-char_u *get_menu_name(expand_T *xp, int idx)
+char *get_menu_name(expand_T *xp, int idx)
{
static vimmenu_T *menu = NULL;
char *str;
@@ -1076,14 +1076,14 @@ char_u *get_menu_name(expand_T *xp, int idx)
should_advance = !should_advance;
- return (char_u *)str;
+ return str;
}
/*
* Function given to ExpandGeneric() to obtain the list of menus and menu
* entries.
*/
-char_u *get_menu_names(expand_T *xp, int idx)
+char *get_menu_names(expand_T *xp, int idx)
{
static vimmenu_T *menu = NULL;
#define TBUFFER_LEN 256
@@ -1143,7 +1143,7 @@ char_u *get_menu_names(expand_T *xp, int idx)
should_advance = !should_advance;
- return (char_u *)str;
+ return str;
}