refactor: replace char_u variables and functions with char

Work on https://github.com/neovim/neovim/issues/459
This commit is contained in:
Dundar Goc
2022-05-08 14:43:16 +02:00
parent 5359be7893
commit 85aae12a6d
48 changed files with 672 additions and 679 deletions

View File

@@ -129,8 +129,8 @@ bool ctx_restore(Context *ctx, const int flags)
free_ctx = true;
}
char_u *op_shada;
get_option_value("shada", NULL, (char **)&op_shada, OPT_GLOBAL);
char *op_shada;
get_option_value("shada", NULL, &op_shada, OPT_GLOBAL);
set_option_value("shada", 0L, "!,'100,%", OPT_GLOBAL);
if (flags & kCtxRegs) {
@@ -157,7 +157,7 @@ bool ctx_restore(Context *ctx, const int flags)
ctx_free(ctx);
}
set_option_value("shada", 0L, (char *)op_shada, OPT_GLOBAL);
set_option_value("shada", 0L, op_shada, OPT_GLOBAL);
xfree(op_shada);
return true;