diff options
| author | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2023-01-13 00:35:39 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-13 07:35:39 +0800 |
| commit | f2141de9e462ed8976b2a59337c32a0fcba2a11d (patch) | |
| tree | 30de2ad03e5ed71bcff9fc29edde84322281b5bb /src/nvim/os | |
| parent | 2f1fd15554921dc2375c2ad136e727229e72348a (diff) | |
| download | rneovim-f2141de9e462ed8976b2a59337c32a0fcba2a11d.tar.gz rneovim-f2141de9e462ed8976b2a59337c32a0fcba2a11d.tar.bz2 rneovim-f2141de9e462ed8976b2a59337c32a0fcba2a11d.zip | |
refactor: replace char_u with char 20 (#21714)
refactor: replace char_u with char
Work on https://github.com/neovim/neovim/issues/459
Diffstat (limited to 'src/nvim/os')
| -rw-r--r-- | src/nvim/os/env.c | 2 | ||||
| -rw-r--r-- | src/nvim/os/shell.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/os/env.c b/src/nvim/os/env.c index ef9b9c5958..263bc32190 100644 --- a/src/nvim/os/env.c +++ b/src/nvim/os/env.c @@ -711,7 +711,7 @@ void expand_env_esc(char *restrict srcp, char *restrict dst, int dstlen, bool es // If "var" contains white space, escape it with a backslash. // Required for ":e ~/tt" when $HOME includes a space. if (esc && var != NULL && strpbrk(var, " \t") != NULL) { - char *p = (char *)vim_strsave_escaped((char_u *)var, (char_u *)" \t"); + char *p = vim_strsave_escaped(var, " \t"); if (mustfree) { xfree(var); diff --git a/src/nvim/os/shell.c b/src/nvim/os/shell.c index d647780847..dce671c9b5 100644 --- a/src/nvim/os/shell.c +++ b/src/nvim/os/shell.c @@ -1332,7 +1332,7 @@ static char *shell_xescape_xquote(const char *cmd) const char *ecmd = cmd; if (*p_sxe != NUL && strcmp(p_sxq, "(") == 0) { - ecmd = (char *)vim_strsave_escaped_ext((char_u *)cmd, p_sxe, '^', false); + ecmd = vim_strsave_escaped_ext(cmd, (char *)p_sxe, '^', false); } size_t ncmd_size = strlen(ecmd) + strlen(p_sxq) * 2 + 1; char *ncmd = xmalloc(ncmd_size); |