aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/option.c
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2022-09-02 17:06:00 +0200
committerGitHub <noreply@github.com>2022-09-02 17:06:00 +0200
commit69456f3414f112853eea1b3214a929d99da556d9 (patch)
treeefd13e7450c658984ed0a71f3cd62f2c67264131 /src/nvim/option.c
parent2afcdbd63a5b0cbeaad9d83b096a3af5201c67a9 (diff)
parent49e893f296bca9eef5ff45a3d746c261d055bf10 (diff)
downloadrneovim-69456f3414f112853eea1b3214a929d99da556d9.tar.gz
rneovim-69456f3414f112853eea1b3214a929d99da556d9.tar.bz2
rneovim-69456f3414f112853eea1b3214a929d99da556d9.zip
Merge pull request #20026 from dundargoc/refactor/char_u/7
refactor: replace char_u with char 7: remove `vim_strnsave`
Diffstat (limited to 'src/nvim/option.c')
-rw-r--r--src/nvim/option.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/option.c b/src/nvim/option.c
index 269a21b512..f8b7d96305 100644
--- a/src/nvim/option.c
+++ b/src/nvim/option.c
@@ -664,8 +664,8 @@ void set_init_3(void)
: !(options[idx_sp].flags & P_WAS_SET);
size_t len = 0;
- char_u *p = (char_u *)invocation_path_tail(p_sh, &len);
- p = vim_strnsave(p, len);
+ char *p = (char *)invocation_path_tail(p_sh, &len);
+ p = xstrnsave(p, len);
{
//
@@ -1131,7 +1131,7 @@ int do_set(char *arg, int opt_flags)
}
} else if (*arg == '-' || ascii_isdigit(*arg)) {
// Allow negative, octal and hex numbers.
- vim_str2nr((char_u *)arg, NULL, &i, STR2NR_ALL, &value, NULL, 0, true);
+ vim_str2nr(arg, NULL, &i, STR2NR_ALL, &value, NULL, 0, true);
if (i == 0 || (arg[i] != NUL && !ascii_iswhite(arg[i]))) {
errmsg = e_number_required_after_equal;
goto skip;