mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 11:15:14 -07:00
refactor(option): remove hidden option check
This commit is contained in:
parent
9a6b399cad
commit
9edd0f077e
@ -419,7 +419,9 @@ void set_string_option_direct_in_buf(buf_T *buf, const char *name, int opt_idx,
|
||||
curbuf = save_curbuf;
|
||||
unblock_autocmds();
|
||||
}
|
||||
|
||||
/// Set a string option to a new value, handling the effects
|
||||
/// Must not be called with a hidden option!
|
||||
///
|
||||
/// @param[in] opt_idx Option to set.
|
||||
/// @param[in] value New value.
|
||||
@ -433,10 +435,6 @@ const char *set_string_option(const int opt_idx, const char *const value, const
|
||||
{
|
||||
vimoption_T *opt = get_option(opt_idx);
|
||||
|
||||
if (opt->var == NULL) { // don't set hidden option
|
||||
return NULL;
|
||||
}
|
||||
|
||||
char **const varp
|
||||
= (char **)get_varp_scope(opt, ((opt_flags & (OPT_LOCAL | OPT_GLOBAL)) == 0
|
||||
? ((opt->indir & PV_BOTH) ? OPT_GLOBAL : OPT_LOCAL)
|
||||
|
Loading…
Reference in New Issue
Block a user