mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 03:18:16 +00:00
refactor: replace char_u variables and functions with char
Work on https://github.com/neovim/neovim/issues/459
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user