aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/eval/funcs.c
diff options
context:
space:
mode:
authordundargoc <33953936+dundargoc@users.noreply.github.com>2023-04-02 10:11:42 +0200
committerGitHub <noreply@github.com>2023-04-02 16:11:42 +0800
commitd510bfbc8e447b1a60d5ec7faaa8f440eb4ef56f (patch)
treecfe7dd74ad588e935ea7613fc91c99b819aa99ad /src/nvim/eval/funcs.c
parent9084948893f9c1669ab56061c8d04adabbb6c3cf (diff)
downloadrneovim-d510bfbc8e447b1a60d5ec7faaa8f440eb4ef56f.tar.gz
rneovim-d510bfbc8e447b1a60d5ec7faaa8f440eb4ef56f.tar.bz2
rneovim-d510bfbc8e447b1a60d5ec7faaa8f440eb4ef56f.zip
refactor: remove char_u (#22829)
Closes https://github.com/neovim/neovim/issues/459
Diffstat (limited to 'src/nvim/eval/funcs.c')
-rw-r--r--src/nvim/eval/funcs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/eval/funcs.c b/src/nvim/eval/funcs.c
index 25d383d8ea..4286e16eb1 100644
--- a/src/nvim/eval/funcs.c
+++ b/src/nvim/eval/funcs.c
@@ -6197,7 +6197,7 @@ static void f_resolve(typval_T *argvars, typval_T *rettv, EvalFuncData fptr)
}
# else
char *v = os_realpath(fname, NULL);
- rettv->vval.v_string = (char_u *)(v == NULL ? xstrdup(fname) : v);
+ rettv->vval.v_string = v == NULL ? xstrdup(fname) : v;
# endif
#endif