diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2021-02-07 17:57:34 -0500 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2021-02-07 17:57:37 -0500 |
commit | d34846af7455b8411476700920cdb64f121bae69 (patch) | |
tree | 16f255fcf66a50ceea661e08cbea7ce965c46e7c /src/nvim/context.c | |
parent | b1df53e86884445d56a171eede5cf76138f2a4d3 (diff) | |
download | rneovim-d34846af7455b8411476700920cdb64f121bae69.tar.gz rneovim-d34846af7455b8411476700920cdb64f121bae69.tar.bz2 rneovim-d34846af7455b8411476700920cdb64f121bae69.zip |
option: use char* for get_option_value() param
'name' param is casted to char_u* within get_option_value().
Most calls to get_option_value() cast arg to 'name' from char to char_u.
Remove these pointless type casts.
Diffstat (limited to 'src/nvim/context.c')
-rw-r--r-- | src/nvim/context.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/context.c b/src/nvim/context.c index 1ae0510762..4162daa6ca 100644 --- a/src/nvim/context.c +++ b/src/nvim/context.c @@ -126,7 +126,7 @@ bool ctx_restore(Context *ctx, const int flags) } char_u *op_shada; - get_option_value((char_u *)"shada", NULL, &op_shada, OPT_GLOBAL); + get_option_value("shada", NULL, &op_shada, OPT_GLOBAL); set_option_value("shada", 0L, "!,'100,%", OPT_GLOBAL); if (flags & kCtxRegs) { |