diff options
author | bfredl <bjorn.linse@gmail.com> | 2022-05-13 00:14:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-13 00:14:46 +0200 |
commit | af9c1e572dc1015b7b8f2a8a09d527f54ca080d3 (patch) | |
tree | a6e3279c3e56e24812644ffed88b7990a5e52244 /src/nvim/menu.c | |
parent | e2d3e73748f8dd4a6d7acbfda2d765d1a02dcfb8 (diff) | |
parent | 85aae12a6dea48621ea2d24a946b3e7b86f9014d (diff) | |
download | rneovim-af9c1e572dc1015b7b8f2a8a09d527f54ca080d3.tar.gz rneovim-af9c1e572dc1015b7b8f2a8a09d527f54ca080d3.tar.bz2 rneovim-af9c1e572dc1015b7b8f2a8a09d527f54ca080d3.zip |
Merge pull request #18489 from dundargoc/refactor/remove-char_u
refactor: replace char_u variables and functions with char
Diffstat (limited to 'src/nvim/menu.c')
-rw-r--r-- | src/nvim/menu.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/menu.c b/src/nvim/menu.c index 72c129338c..7b254f1b62 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; } |