diff options
author | bfredl <bjorn.linse@gmail.com> | 2022-05-13 00:14:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-13 00:14:46 +0200 |
commit | af9c1e572dc1015b7b8f2a8a09d527f54ca080d3 (patch) | |
tree | a6e3279c3e56e24812644ffed88b7990a5e52244 /src/nvim/context.c | |
parent | e2d3e73748f8dd4a6d7acbfda2d765d1a02dcfb8 (diff) | |
parent | 85aae12a6dea48621ea2d24a946b3e7b86f9014d (diff) | |
download | rneovim-af9c1e572dc1015b7b8f2a8a09d527f54ca080d3.tar.gz rneovim-af9c1e572dc1015b7b8f2a8a09d527f54ca080d3.tar.bz2 rneovim-af9c1e572dc1015b7b8f2a8a09d527f54ca080d3.zip |
Merge pull request #18489 from dundargoc/refactor/remove-char_u
refactor: replace char_u variables and functions with char
Diffstat (limited to 'src/nvim/context.c')
-rw-r--r-- | src/nvim/context.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/context.c b/src/nvim/context.c index 0e0d8fdfde..db26667009 100644 --- a/src/nvim/context.c +++ b/src/nvim/context.c @@ -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; |