aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/menu.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/menu.c')
-rw-r--r--src/nvim/menu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/menu.c b/src/nvim/menu.c
index 7b254f1b62..c1ce2eefe3 100644
--- a/src/nvim/menu.c
+++ b/src/nvim/menu.c
@@ -1301,7 +1301,7 @@ static char *menu_text(const char *str, int *mnemonic, char **actext)
char *text;
// Locate accelerator text, after the first TAB
- p = (char *)vim_strchr((char_u *)str, TAB);
+ p = vim_strchr(str, TAB);
if (p != NULL) {
if (actext != NULL) {
*actext = xstrdup(p + 1);
@@ -1314,7 +1314,7 @@ static char *menu_text(const char *str, int *mnemonic, char **actext)
// Find mnemonic characters "&a" and reduce "&&" to "&".
for (p = text; p != NULL;) {
- p = (char *)vim_strchr((char_u *)p, '&');
+ p = vim_strchr(p, '&');
if (p != NULL) {
if (p[1] == NUL) { // trailing "&"
break;