diff options
author | bfredl <bjorn.linse@gmail.com> | 2022-08-26 23:07:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-26 23:07:56 +0200 |
commit | b0e052a8b30ce84221c3f992e111713451633b36 (patch) | |
tree | 27caaef2e0b8351eb5637d1a969229663ec2c4a8 /src/nvim/os/env.c | |
parent | 6a13b8fa5460da5aa22a1c366e5252c26ed5fe1e (diff) | |
parent | 395277036014189c03b8969fc0a5cd2bdc5c8631 (diff) | |
download | rneovim-b0e052a8b30ce84221c3f992e111713451633b36.tar.gz rneovim-b0e052a8b30ce84221c3f992e111713451633b36.tar.bz2 rneovim-b0e052a8b30ce84221c3f992e111713451633b36.zip |
Merge pull request #19957 from dundargoc/refactor/char_u/1
refactor: replace char_u with char
Diffstat (limited to 'src/nvim/os/env.c')
-rw-r--r-- | src/nvim/os/env.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/os/env.c b/src/nvim/os/env.c index 795bff66cb..d46d51882e 100644 --- a/src/nvim/os/env.c +++ b/src/nvim/os/env.c @@ -937,8 +937,8 @@ char *vim_getenv(const char *name) // - the directory name from 'helpfile' (unless it contains '$') // - the executable name from argv[0] if (vim_path == NULL) { - if (p_hf != NULL && vim_strchr((char *)p_hf, '$') == NULL) { - vim_path = (char *)p_hf; + if (p_hf != NULL && vim_strchr(p_hf, '$') == NULL) { + vim_path = p_hf; } char exe_name[MAXPATHL]; @@ -957,7 +957,7 @@ char *vim_getenv(const char *name) char *vim_path_end = path_tail(vim_path); // remove "doc/" from 'helpfile', if present - if (vim_path == (char *)p_hf) { + if (vim_path == p_hf) { vim_path_end = remove_tail(vim_path, vim_path_end, "doc"); } |