aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/match.c
diff options
context:
space:
mode:
authorDundar Goc <gocdundar@gmail.com>2022-05-03 11:06:27 +0200
committerDundar Goc <gocdundar@gmail.com>2022-05-04 15:25:54 +0200
commit5576d30e89153c817fb1a8d23c30cfc0432bc7c6 (patch)
tree3a1457be276d95ffccbb760e79c708ab11b2cd54 /src/nvim/match.c
parent3ec93ca92cb08faed342586e86a6f21b35264376 (diff)
downloadrneovim-5576d30e89153c817fb1a8d23c30cfc0432bc7c6.tar.gz
rneovim-5576d30e89153c817fb1a8d23c30cfc0432bc7c6.tar.bz2
rneovim-5576d30e89153c817fb1a8d23c30cfc0432bc7c6.zip
refactor: replace char_u variables and functions with char
Work on https://github.com/neovim/neovim/issues/459
Diffstat (limited to 'src/nvim/match.c')
-rw-r--r--src/nvim/match.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/nvim/match.c b/src/nvim/match.c
index 86ddad0d47..e6f34c5876 100644
--- a/src/nvim/match.c
+++ b/src/nvim/match.c
@@ -1176,14 +1176,14 @@ void ex_match(exarg_T *eap)
}
if (ends_excmd(*eap->arg)) {
- end = eap->arg;
+ end = (char_u *)eap->arg;
} else if ((STRNICMP(eap->arg, "none", 4) == 0
&& (ascii_iswhite(eap->arg[4]) || ends_excmd(eap->arg[4])))) {
- end = eap->arg + 4;
+ end = (char_u *)eap->arg + 4;
} else {
- p = skiptowhite(eap->arg);
+ p = skiptowhite((char_u *)eap->arg);
if (!eap->skip) {
- g = vim_strnsave(eap->arg, (size_t)(p - eap->arg));
+ g = vim_strnsave((char_u *)eap->arg, (size_t)(p - (char_u *)eap->arg));
}
p = skipwhite(p);
if (*p == NUL) {
@@ -1213,5 +1213,5 @@ void ex_match(exarg_T *eap)
*end = (char_u)c;
}
}
- eap->nextcmd = find_nextcmd(end);
+ eap->nextcmd = (char *)find_nextcmd(end);
}