diff options
author | Dundar Goc <gocdundar@gmail.com> | 2022-07-31 16:20:57 +0200 |
---|---|---|
committer | dundargoc <gocundar@gmail.com> | 2022-08-12 14:22:02 +0200 |
commit | 094cdf2d691bc005dadb5a22bb83b85f3b6dff49 (patch) | |
tree | f09ca6baf124ceaeaef27c095fee1e30ecb772b0 /src/nvim/ex_cmds.c | |
parent | f79773a3b4b3ce5a3b37652a72b12089880f32a4 (diff) | |
download | rneovim-094cdf2d691bc005dadb5a22bb83b85f3b6dff49.tar.gz rneovim-094cdf2d691bc005dadb5a22bb83b85f3b6dff49.tar.bz2 rneovim-094cdf2d691bc005dadb5a22bb83b85f3b6dff49.zip |
refactor: replace char_u with char
Work on https://github.com/neovim/neovim/issues/459
Diffstat (limited to 'src/nvim/ex_cmds.c')
-rw-r--r-- | src/nvim/ex_cmds.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c index 8f22fe6178..ce15a9c86f 100644 --- a/src/nvim/ex_cmds.c +++ b/src/nvim/ex_cmds.c @@ -3544,7 +3544,7 @@ static int do_sub(exarg_T *eap, proftime_T timeout, long cmdpreview_ns, handle_T which_pat = RE_LAST; // use last used regexp delimiter = (char_u)(*cmd++); // remember delimiter character pat = cmd; // remember start of search pat - cmd = (char *)skip_regexp((char_u *)cmd, delimiter, p_magic, (char_u **)&eap->arg); + cmd = (char *)skip_regexp((char_u *)cmd, delimiter, p_magic, &eap->arg); if (cmd[0] == delimiter) { // end delimiter found *cmd++ = NUL; // replace it with a NUL has_second_delim = true; @@ -4629,7 +4629,7 @@ void ex_global(exarg_T *eap) delim = *cmd; // get the delimiter cmd++; // skip delimiter if there is one pat = cmd; // remember start of pattern - cmd = (char *)skip_regexp((char_u *)cmd, delim, p_magic, (char_u **)&eap->arg); + cmd = (char *)skip_regexp((char_u *)cmd, delim, p_magic, &eap->arg); if (cmd[0] == delim) { // end delimiter found *cmd++ = NUL; // replace it with a NUL } |