diff options
author | bfredl <bjorn.linse@gmail.com> | 2022-08-31 20:50:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-31 20:50:43 +0200 |
commit | f078a3453ae479e4d6f88f874e8d282d63c798a3 (patch) | |
tree | 60997bc19af85f1292cb0ca7e66e797737006dee /src/nvim/cmdexpand.c | |
parent | 933c80e8f9d7ff4ab634c14d370440702c7c8ed7 (diff) | |
parent | fb1edb2f5728d74ae811c6ab32395598cea5609b (diff) | |
download | rneovim-f078a3453ae479e4d6f88f874e8d282d63c798a3.tar.gz rneovim-f078a3453ae479e4d6f88f874e8d282d63c798a3.tar.bz2 rneovim-f078a3453ae479e4d6f88f874e8d282d63c798a3.zip |
Merge pull request #20007 from dundargoc/refactor/char_u/5
refactor: replace char_u with char 5
Diffstat (limited to 'src/nvim/cmdexpand.c')
-rw-r--r-- | src/nvim/cmdexpand.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/cmdexpand.c b/src/nvim/cmdexpand.c index 5c54404aab..1c35f28301 100644 --- a/src/nvim/cmdexpand.c +++ b/src/nvim/cmdexpand.c @@ -675,7 +675,7 @@ int showmatches(expand_T *xp, int wildmenu) msg_advance(maxlen + 1); msg_puts((const char *)p); msg_advance(maxlen + 3); - msg_outtrans_long_attr(p + 2, HL_ATTR(HLF_D)); + msg_outtrans_long_attr((char *)p + 2, HL_ATTR(HLF_D)); break; } for (j = maxlen - lastlen; --j >= 0;) { @@ -2720,7 +2720,7 @@ int wildmenu_process_key(CmdlineInfo *cclp, int key, expand_T *xp) int j = cclp->cmdpos; int i = (int)((char_u *)xp->xp_pattern - cclp->cmdbuff); while (--j > i) { - j -= utf_head_off(cclp->cmdbuff, cclp->cmdbuff + j); + j -= utf_head_off((char *)cclp->cmdbuff, (char *)cclp->cmdbuff + j); if (vim_ispathsep(cclp->cmdbuff[j])) { found = true; break; @@ -2741,7 +2741,7 @@ int wildmenu_process_key(CmdlineInfo *cclp, int key, expand_T *xp) int j = cclp->cmdpos - 1; int i = (int)((char_u *)xp->xp_pattern - cclp->cmdbuff); while (--j > i) { - j -= utf_head_off(cclp->cmdbuff, cclp->cmdbuff + j); + j -= utf_head_off((char *)cclp->cmdbuff, (char *)cclp->cmdbuff + j); if (vim_ispathsep(cclp->cmdbuff[j]) #ifdef BACKSLASH_IN_FILENAME && vim_strchr((const char_u *)" *?[{`$%#", cclp->cmdbuff[j + 1]) |